You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.StringVar(&cfg.SnapshotCompression, prefix+"snapshot-compression", "zstd", "Compression algorithm to use for snapshots. Supported compressions: zstd.")
49
+
f.StringVar(&cfg.DataDir, prefix+"data-dir", "./data-metastore/data", "Directory to store the data.")
50
+
}
51
+
39
52
// FSM implements the raft.FSM interface.
40
53
typeFSMstruct {
41
54
logger log.Logger
55
+
configConfig
42
56
metrics*metrics
43
57
44
58
mu sync.RWMutex
@@ -54,13 +68,14 @@ type FSM struct {
54
68
55
69
typehandlerfunc(tx*bbolt.Tx, cmd*raft.Log, raw []byte) (proto.Message, error)
f.DurationVar(&cfg.MinReadyDuration, prefix+"min-ready-duration", 15*time.Second, "Minimum duration to wait after the internal readiness checks have passed but before succeeding the readiness endpoint. This is used to slowdown deployment controllers (eg. Kubernetes) after an instance is ready and before they proceed with a rolling update, to give the rest of the cluster instances enough time to receive some (DNS?) updates.")
0 commit comments