Skip to content

Commit 37c44b0

Browse files
authored
Merge pull request #20380 from 4rivappa/add-20328-to-release-3.5
[release-3.5] Updated help for --quota-backend-bytes
2 parents a6ebeb0 + fdd20ed commit 37c44b0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

etcd.conf.yml.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ heartbeat-interval: 100
1818
# Time (in milliseconds) for an election to timeout.
1919
election-timeout: 1000
2020

21-
# Raise alarms when backend size exceeds the given quota. 0 means use the
22-
# default quota.
21+
# Sets the maximum size (in bytes) that the etcd backend database may consume.
22+
# Exceeding this triggers an alarm and puts etcd in read-only mode.
23+
# Set to 0 to use the default 2GiB limit.
2324
quota-backend-bytes: 0
2425

2526
# List of comma separated URLs to listen on for peer traffic.

server/etcdmain/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func newConfig() *config {
177177
fs.UintVar(&cfg.ec.TickMs, "heartbeat-interval", cfg.ec.TickMs, "Time (in milliseconds) of a heartbeat interval.")
178178
fs.UintVar(&cfg.ec.ElectionMs, "election-timeout", cfg.ec.ElectionMs, "Time (in milliseconds) for an election to timeout.")
179179
fs.BoolVar(&cfg.ec.InitialElectionTickAdvance, "initial-election-tick-advance", cfg.ec.InitialElectionTickAdvance, "Whether to fast-forward initial election ticks on boot for faster election.")
180-
fs.Int64Var(&cfg.ec.QuotaBackendBytes, "quota-backend-bytes", cfg.ec.QuotaBackendBytes, "Raise alarms when backend size exceeds the given quota. 0 means use the default quota.")
180+
fs.Int64Var(&cfg.ec.QuotaBackendBytes, "quota-backend-bytes", cfg.ec.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.")
181181
fs.StringVar(&cfg.ec.BackendFreelistType, "backend-bbolt-freelist-type", cfg.ec.BackendFreelistType, "BackendFreelistType specifies the type of freelist that boltdb backend uses(array and map are supported types)")
182182
fs.DurationVar(&cfg.ec.BackendBatchInterval, "backend-batch-interval", cfg.ec.BackendBatchInterval, "BackendBatchInterval is the maximum time before commit the backend transaction.")
183183
fs.IntVar(&cfg.ec.BackendBatchLimit, "backend-batch-limit", cfg.ec.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
@@ -72,7 +72,7 @@ Member:
7272
--max-wals '` + strconv.Itoa(embed.DefaultMaxWALs) + `'
7373
Maximum number of wal files to retain (0 is unlimited).
7474
--quota-backend-bytes '0'
75-
Raise alarms when backend size exceeds the given quota (0 defaults to low space quota).
75+
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.
7676
--backend-bbolt-freelist-type 'map'
7777
BackendFreelistType specifies the type of freelist that boltdb backend uses(array and map are supported types).
7878
--backend-batch-interval ''

0 commit comments

Comments
 (0)