config

package
v0.0.0-...-9750751 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Initializer initmgr.IInitializer = initmgr.NewInitializer(initialize, finalize)

Functions

func LoadConfig

func LoadConfig(ssConfigFile string) (err error)

Types

type Config

type Config struct {
	service.Config

	RootDir     string
	StateLogDir string
	PidFileName string
	LogLevel    string
	ClusterName string
	HttpMonAddr string

	StateLogEnabled    bool
	EtcdEnabled        bool
	MicroShardsEnabled bool
	ShardIdValidation  bool
	CloudEnabled       bool
	DbWatchEnabled     bool

	MaxConcurrentRequests uint32
	NumPrefixDbs          uint32
	NumMicroShards        uint32
	NumMicroShardGroups   uint32
	ReqProcCtxPoolSize    uint32
	MaxTimeToLive         uint32

	RecLockExpiration   util.Duration
	ClusterInfo         *cluster.Config
	DB                  *db.Config
	Redist              *redist.Config
	Cal                 cal.Config
	Etcd                etcd.Config
	ShardMapUpdateDelay util.Duration
	OTEL                otel.Config
	DbScan              dbscan.DbScan
}

func ServerConfig

func ServerConfig() *Config

func (*Config) Dump

func (c *Config) Dump()

func (*Config) NewShardMap

func (c *Config) NewShardMap(zoneId int, machineId int) (shardMap shard.Map)

Calculate & set the derived info for once

func (*Config) OnLoad

func (c *Config) OnLoad()

func (*Config) Validate

func (c *Config) Validate() (err error)

Jump to

Keyboard shortcuts

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