metaserver

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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 CgroupOptions added in v0.5.1

type CgroupOptions struct{}

type KubeletOptions added in v0.5.1

type KubeletOptions struct{}

type MalachiteOptions added in v0.5.1

type MalachiteOptions struct{}

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 pod-cache
	KubeletPodCacheSyncPeriod    time.Duration
	KubeletPodCacheSyncMaxRate   int
	KubeletPodCacheSyncBurstBulk int
	RuntimePodCacheSyncPeriod    time.Duration

	// configurations for cnr
	CNRCacheTTL time.Duration

	// configurations for cnc
	CustomNodeConfigCacheTTL time.Duration

	// configurations for metric-fetcher
	*MetricFetcherOptions
}

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. todo separate this option-structure into individual structures

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

type MetricFetcherOptions added in v0.5.1

type MetricFetcherOptions struct {
	MetricInsurancePeriod time.Duration
	MetricProvisions      []string

	DefaultInterval         time.Duration
	ProvisionerIntervalSecs map[string]int

	*MalachiteOptions
	*CgroupOptions
	*KubeletOptions
	*RodanOptions
}

func NewMetricFetcherOptions added in v0.5.1

func NewMetricFetcherOptions() *MetricFetcherOptions

func (*MetricFetcherOptions) AddFlags added in v0.5.1

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

AddFlags adds flags to the specified FlagSet.

func (*MetricFetcherOptions) ApplyTo added in v0.5.1

ApplyTo fills up config with options

type RodanOptions added in v0.5.1

type RodanOptions struct {
	ServerPort int
}

Jump to

Keyboard shortcuts

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