config

package
v1.29.0-alpha.175 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package config xxx

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertConfig

type CertConfig struct {
	CAFile     string
	CertFile   string
	KeyFile    string
	CertPasswd string
	IsSSL      bool
}

CertConfig is configuration of Cert

type Config

type Config struct {
	// bcs mesos cluster zk, list/watch application info
	// example: 127.0.0.1:2181,127.0.0.2:2181,127.0.0.3:2181
	ClusterZkAddr string

	// kubeconfig to connect to bcs mesos kube-api, list/watch application info
	KubeConfig string

	// bcs service zk, to discovery bcs-driver and bcs-storage
	// example: 127.0.0.1:2181,127.0.0.2:2181,127.0.0.3:2181
	BcsZkAddr string

	// bcs cluster id
	ClusterID string

	// container resources cadvisor port
	CadvisorPort int

	// client https certs
	ClientCert *CertConfig `json:"-"`

	// The following fields define time interval from which metrics were
	// collected from the interval [interval duration].
	// second, default 30s
	CollectMetricsInterval int

	// the latest value of metrics as an average aggregated across window seconds
	// second, default 30
	CollectMetricsWindow int

	// The period for which autoscaler will look backwards and
	// not scale down below any recommendation it made during that period
	// second, default 300
	DownscaleStabilization int64

	// The period for which autoscaler will look backwards and
	// not scale up below any recommendation it made during that period
	// second, default 180
	UpscaleStabilization int64

	// The period for syncing the autoscaler metrics
	// second, default 10s
	MetricsSyncPeriod int

	// The minimum change (from 1.0) in the desired-to-actual metrics ratio
	// for the autoscaler to consider scaling
	// if metric current/metric target > AutoscalerTolerance or < AutoscalerTolerance, then scale
	// float, default 0.2
	AutoscalerTolerance float32
}

Config xxx

func NewConfig

func NewConfig() *Config

NewConfig create a config object

Jump to

Keyboard shortcuts

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