Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRaftStoreFromFile ¶
func CreateRaftStoreFromFile(dataPath string, metadataStorage storage.MetadataStorage, dataStorages []storage.DataStorage, opts ...raftstore.Option) (raftstore.Store, error)
CreateRaftStoreFromFile create raftstore from a toml configuration file.
Types ¶
type ProphetCfg ¶
type ProphetCfg struct { RPCAddr string `toml:"rpcAddr"` StoreMetadata bool `toml:"storeMetadata"` ClientAddr string `toml:"clientAddr"` PeerAddr string `toml:"peerAddr"` Seed string `toml:"seed"` Clusters []string `toml:"clusters"` LeaderLeaseTTL int64 `toml:"leaderLeaseTTL"` MaxRPCCons int `toml:"maxRPCCons"` MaxRPCConnIdle int64 `toml:"maxRPCConnIdle"` MaxRPCTimeout int64 `toml:"maxRPCTimeout"` CountResourceReplicas int `toml:"countResourceReplicas"` MaxScheduleRetries int `toml:"maxScheduleRetries"` MaxScheduleInterval int64 `toml:"maxScheduleInterval"` MinScheduleInterval int64 `toml:"minScheduleInterval"` TimeoutWaitOperatorComplete int64 `toml:"timeoutWaitOperatorComplete"` MaxFreezeScheduleInterval int64 `toml:"maxFreezeScheduleInterval"` MaxRebalanceLeader uint64 `toml:"maxRebalanceLeader"` MaxRebalanceReplica uint64 `toml:"maxRebalanceReplica"` MaxScheduleReplica uint64 `toml:"maxScheduleReplica"` MaxLimitSnapshotsCount uint64 `toml:"maxLimitSnapshotsCount"` MinAvailableStorageUsedRate int `toml:"minAvailableStorageUsedRate"` }
ProphetCfg prophet cfg
Click to show internal directories.
Click to hide internal directories.