metaserver

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaServerOptions

type MetaServerOptions struct {
	// generic configurations for metaserver
	CheckpointManagerDir string
	EnableMetricsFetcher bool
	EnableCNCFetcher     bool

	// configurations for kcc
	ConfigCacheTTL                 time.Duration
	ConfigDisableDynamic           bool
	ConfigSkipFailedInitialization bool
	ConfigCheckpointGraceTime      time.Duration

	// configurations for spd
	ServiceProfileSkipCorruptionError bool
	ServiceProfileCacheTTL            time.Duration

	// configurations for metric-fetcher
	MetricInsurancePeriod time.Duration
	MetricProvisions      []string
	RodanServerPort       int

	// configurations for pod-cache
	KubeletPodCacheSyncPeriod    time.Duration
	KubeletPodCacheSyncMaxRate   int
	KubeletPodCacheSyncBurstBulk int
	RuntimePodCacheSyncPeriod    time.Duration

	// configurations for cnr
	CNRCacheTTL time.Duration

	// configurations for cnc
	CustomNodeConfigCacheTTL time.Duration
}

MetaServerOptions holds all the configurations for metaserver. we will not try to separate this structure into several individual structures since it will not be used directly by other components; instead, we will only separate them with blanks in a single structure.

func NewMetaServerOptions

func NewMetaServerOptions() *MetaServerOptions

func (*MetaServerOptions) AddFlags

func (o *MetaServerOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*MetaServerOptions) ApplyTo

ApplyTo fills up config with options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL