server: added duplicate warning-unary-request-duration flag
--warning-unary-request-duration is a duplicate of --experimental-warning-unary-request-duration experimental-warning-unary-request-duration will be removed in v3.7. fixes https://github.com/etcd-io/etcd/issues/13783 Signed-off-by: Bogdan Kanivets <bkanivets@apple.com>
This commit is contained in:

committed by
Benjamin Wang

parent
07a3cfe22e
commit
7e8ebf7727
@ -342,8 +342,10 @@ type Config struct {
|
||||
// ExperimentalBootstrapDefragThresholdMegabytes is the minimum number of megabytes needed to be freed for etcd server to
|
||||
// consider running defrag during bootstrap. Needs to be set to non-zero value to take effect.
|
||||
ExperimentalBootstrapDefragThresholdMegabytes uint `json:"experimental-bootstrap-defrag-threshold-megabytes"`
|
||||
// ExperimentalWarningUnaryRequestDuration is the time duration after which a warning is generated if applying
|
||||
// WarningUnaryRequestDuration is the time duration after which a warning is generated if applying
|
||||
// unary request takes more time than this value.
|
||||
WarningUnaryRequestDuration time.Duration `json:"warning-unary-request-duration"`
|
||||
// ExperimentalWarningUnaryRequestDuration is deprecated, please use WarningUnaryRequestDuration instead.
|
||||
ExperimentalWarningUnaryRequestDuration time.Duration `json:"experimental-warning-unary-request-duration"`
|
||||
// ExperimentalMaxLearners sets a limit to the number of learner members that can exist in the cluster membership.
|
||||
ExperimentalMaxLearners int `json:"experimental-max-learners"`
|
||||
@ -474,8 +476,6 @@ func NewConfig() *Config {
|
||||
MaxConcurrentStreams: DefaultMaxConcurrentStreams,
|
||||
ExperimentalWarningApplyDuration: DefaultWarningApplyDuration,
|
||||
|
||||
ExperimentalWarningUnaryRequestDuration: DefaultWarningUnaryRequestDuration,
|
||||
|
||||
GRPCKeepAliveMinTime: DefaultGRPCKeepAliveMinTime,
|
||||
GRPCKeepAliveInterval: DefaultGRPCKeepAliveInterval,
|
||||
GRPCKeepAliveTimeout: DefaultGRPCKeepAliveTimeout,
|
||||
|
Reference in New Issue
Block a user