Documentation ¶
Index ¶
- type Config
- type Options
- func (o *Options) GetEpochUpdateRatio() float64
- func (o *Options) GetFlowUpdateRatio() float64
- func (o *Options) GetHotStoreCount() int
- func (o *Options) GetLeaderUpdateRatio() float64
- func (o *Options) GetReportRatio() float64
- func (o *Options) GetSpaceUpdateRatio() float64
- func (o *Options) SetOptions(cfg *Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PDAddr string StatusAddr string Log log.Config `toml:"log" json:"log"` Logger *zap.Logger LogProps *log.ZapProperties Security configutil.SecurityConfig `toml:"security" json:"security"` InitEpochVer uint64 `toml:"epoch-ver" json:"epoch-ver"` StoreCount int `toml:"store-count" json:"store-count"` HotStoreCount int `toml:"hot-store-count" json:"hot-store-count"` RegionCount int `toml:"region-count" json:"region-count"` Replica int `toml:"replica" json:"replica"` LeaderUpdateRatio float64 `toml:"leader-update-ratio" json:"leader-update-ratio"` EpochUpdateRatio float64 `toml:"epoch-update-ratio" json:"epoch-update-ratio"` SpaceUpdateRatio float64 `toml:"space-update-ratio" json:"space-update-ratio"` FlowUpdateRatio float64 `toml:"flow-update-ratio" json:"flow-update-ratio"` ReportRatio float64 `toml:"report-ratio" json:"report-ratio"` Sample bool `toml:"sample" json:"sample"` Round int `toml:"round" json:"round"` // contains filtered or unexported fields }
Config is the heartbeat-bench configuration.
type Options ¶
type Options struct { HotStoreCount atomic.Value ReportRatio atomic.Value LeaderUpdateRatio atomic.Value EpochUpdateRatio atomic.Value SpaceUpdateRatio atomic.Value FlowUpdateRatio atomic.Value }
Options is the option of the heartbeat-bench.
func (*Options) GetEpochUpdateRatio ¶
GetEpochUpdateRatio returns the epoch update ratio.
func (*Options) GetFlowUpdateRatio ¶
GetFlowUpdateRatio returns the flow update ratio.
func (*Options) GetHotStoreCount ¶
GetHotStoreCount returns the hot store count.
func (*Options) GetLeaderUpdateRatio ¶
GetLeaderUpdateRatio returns the leader update ratio.
func (*Options) GetReportRatio ¶
GetReportRatio returns the report ratio.
func (*Options) GetSpaceUpdateRatio ¶
GetSpaceUpdateRatio returns the space update ratio.
Click to show internal directories.
Click to hide internal directories.