mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
embed,etcdmain: add "--experimental-initial-corrupt-check"
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
c983f0ae98
commit
3db5ad8d57
@ -171,6 +171,7 @@ type Config struct {
|
|||||||
|
|
||||||
// Experimental flags
|
// Experimental flags
|
||||||
|
|
||||||
|
ExperimentalInitialCorruptCheck bool `json:"experimental-initial-corrupt-check"`
|
||||||
ExperimentalCorruptCheckTime time.Duration `json:"experimental-corrupt-check-time"`
|
ExperimentalCorruptCheckTime time.Duration `json:"experimental-corrupt-check-time"`
|
||||||
ExperimentalEnableV2V3 string `json:"experimental-enable-v2v3"`
|
ExperimentalEnableV2V3 string `json:"experimental-enable-v2v3"`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -175,6 +175,7 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
|
|||||||
StrictReconfigCheck: cfg.StrictReconfigCheck,
|
StrictReconfigCheck: cfg.StrictReconfigCheck,
|
||||||
ClientCertAuthEnabled: cfg.ClientTLSInfo.ClientCertAuth,
|
ClientCertAuthEnabled: cfg.ClientTLSInfo.ClientCertAuth,
|
||||||
AuthToken: cfg.AuthToken,
|
AuthToken: cfg.AuthToken,
|
||||||
|
InitialCorruptCheck: cfg.ExperimentalInitialCorruptCheck,
|
||||||
CorruptCheckTime: cfg.ExperimentalCorruptCheckTime,
|
CorruptCheckTime: cfg.ExperimentalCorruptCheckTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -213,6 +213,7 @@ func newConfig() *config {
|
|||||||
fs.StringVar(&cfg.ec.AuthToken, "auth-token", cfg.ec.AuthToken, "Specify auth token specific options.")
|
fs.StringVar(&cfg.ec.AuthToken, "auth-token", cfg.ec.AuthToken, "Specify auth token specific options.")
|
||||||
|
|
||||||
// experimental
|
// experimental
|
||||||
|
fs.BoolVar(&cfg.ec.ExperimentalInitialCorruptCheck, "experimental-initial-corrupt-check", cfg.ec.ExperimentalInitialCorruptCheck, "Enable to check data corruption before serving any client/peer traffic.")
|
||||||
fs.DurationVar(&cfg.ec.ExperimentalCorruptCheckTime, "experimental-corrupt-check-time", cfg.ec.ExperimentalCorruptCheckTime, "Duration of time between cluster corruption check passes.")
|
fs.DurationVar(&cfg.ec.ExperimentalCorruptCheckTime, "experimental-corrupt-check-time", cfg.ec.ExperimentalCorruptCheckTime, "Duration of time between cluster corruption check passes.")
|
||||||
|
|
||||||
// ignored
|
// ignored
|
||||||
|
|||||||
@ -187,6 +187,8 @@ auth flags:
|
|||||||
Specify a v3 authentication token type and its options ('simple' or 'jwt').
|
Specify a v3 authentication token type and its options ('simple' or 'jwt').
|
||||||
|
|
||||||
experimental flags:
|
experimental flags:
|
||||||
|
--experimental-initial-corrupt-check 'false'
|
||||||
|
enable to check data corruption before serving any client/peer traffic.
|
||||||
--experimental-corrupt-check-time '0s'
|
--experimental-corrupt-check-time '0s'
|
||||||
duration of time between cluster corruption check passes.
|
duration of time between cluster corruption check passes.
|
||||||
--experimental-enable-v2v3 ''
|
--experimental-enable-v2v3 ''
|
||||||
|
|||||||
@ -66,6 +66,9 @@ type ServerConfig struct {
|
|||||||
|
|
||||||
AuthToken string
|
AuthToken string
|
||||||
|
|
||||||
|
// InitialCorruptCheck is true to check data corruption on boot
|
||||||
|
// before serving any peer/client traffic.
|
||||||
|
InitialCorruptCheck bool
|
||||||
CorruptCheckTime time.Duration
|
CorruptCheckTime time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user