Skip to content

Commit 68ddc06

Browse files
authored
Merge pull request #20352 from k8s-infra-cherrypick-robot/cherry-pick-20328-to-release-3.6
[release-3.6] Updated help for --quota-backend-bytes
2 parents fe698af + ad00289 commit 68ddc06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/embed/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ func (cfg *Config) AddFlags(fs *flag.FlagSet) {
778778
fs.UintVar(&cfg.TickMs, "heartbeat-interval", cfg.TickMs, "Time (in milliseconds) of a heartbeat interval.")
779779
fs.UintVar(&cfg.ElectionMs, "election-timeout", cfg.ElectionMs, "Time (in milliseconds) for an election to timeout.")
780780
fs.BoolVar(&cfg.InitialElectionTickAdvance, "initial-election-tick-advance", cfg.InitialElectionTickAdvance, "Whether to fast-forward initial election ticks on boot for faster election.")
781-
fs.Int64Var(&cfg.QuotaBackendBytes, "quota-backend-bytes", cfg.QuotaBackendBytes, "Raise alarms when backend size exceeds the given quota. 0 means use the default quota.")
781+
fs.Int64Var(&cfg.QuotaBackendBytes, "quota-backend-bytes", cfg.QuotaBackendBytes, "Sets the maximum size (in bytes) that the etcd backend database may consume. Exceeding this triggers an alarm and puts etcd in read-only mode. Set to 0 to use the default 2GiB limit.")
782782
fs.StringVar(&cfg.BackendFreelistType, "backend-bbolt-freelist-type", cfg.BackendFreelistType, "BackendFreelistType specifies the type of freelist that boltdb backend uses(array and map are supported types)")
783783
fs.DurationVar(&cfg.BackendBatchInterval, "backend-batch-interval", cfg.BackendBatchInterval, "BackendBatchInterval is the maximum time before commit the backend transaction.")
784784
fs.IntVar(&cfg.BackendBatchLimit, "backend-batch-limit", cfg.BackendBatchLimit, "BackendBatchLimit is the maximum operations before commit the backend transaction.")

server/etcdmain/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Member:
7878
--memory-mlock
7979
Enable to enforce etcd pages (in particular bbolt) to stay in RAM.
8080
--quota-backend-bytes '0'
81-
Raise alarms when backend size exceeds the given quota (0 defaults to low space quota).
81+
Sets the maximum size (in bytes) that the etcd backend database may consume. Exceeding this triggers an alarm and puts etcd in read-only mode. Set to 0 to use the default 2GiB limit.
8282
--backend-bbolt-freelist-type 'map'
8383
BackendFreelistType specifies the type of freelist that boltdb backend uses(array and map are supported types).
8484
--backend-batch-interval ''

0 commit comments

Comments
 (0)