Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB uint64 = 1024 MB uint64 = 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StoreAddr string Raft bool SchedulerAddr string LogLevel string DBPath string // Directory to store the data in. Should exist and be writable. // raft_base_tick_interval is a base tick interval (ms). RaftBaseTickInterval time.Duration RaftHeartbeatTicks int RaftElectionTimeoutTicks int // Interval to gc unnecessary raft log (ms). RaftLogGCTickInterval time.Duration // When entry count exceed this value, gc will be forced trigger. RaftLogGcCountLimit uint64 // Interval (ms) to check region whether need to be split or not. SplitRegionCheckTickInterval time.Duration // delay time before deleting a stale peer SchedulerHeartbeatTickInterval time.Duration SchedulerStoreHeartbeatTickInterval time.Duration // When region [a,e) size meets regionMaxSize, it will be split into // several regions [a,b), [b,c), [c,d), [d,e). And the size of [a,b), // [b,c), [c,d) will be regionSplitSize (maybe a little larger). RegionMaxSize uint64 RegionSplitSize uint64 }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func NewTestConfig ¶
func NewTestConfig() *Config
Click to show internal directories.
Click to hide internal directories.