Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d686648

Browse files
committed
*: make auto-compaction-retention non-experimental
1 parent 3488555 commit d686648

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

Documentation/op-guide/configuration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ To start etcd automatically using custom settings at startup in Linux, using a [
135135
+ default: false
136136
+ env variable: ETCD_STRICT_RECONFIG_CHECK
137137

138+
### --auto-compaction-retention
139+
+ Auto compaction retention for mvcc key value store in hour. 0 means disable auto compaction.
140+
+ default: 0
141+
+ env variable: ETCD_AUTO_COMPACTION_RETENTION
142+
138143
## Proxy Flags
139144

140145
`--proxy` prefix flags configures etcd to run in [proxy mode][proxy].

Documentation/op-guide/maintenance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Since etcd keeps an exact history of its keyspace, this history should be period
1212

1313
The keyspace can be compacted automatically with `etcd`'s time windowed history retention policy, or manually with `etcdctl`. The `etcdctl` method provides fine-grained control over the compacting process whereas automatic compacting fits applications that only need key history for some length of time.
1414

15-
`etcd` can be set to automatically compact the keyspace with the `--experimental-auto-compaction` option with a period of hours:
15+
`etcd` can be set to automatically compact the keyspace with the `--auto-compaction` option with a period of hours:
1616

1717
```sh
1818
# keep one hour of history
19-
$ etcd --experimental-auto-compaction-retention=1
19+
$ etcd --auto-compaction-retention=1
2020
```
2121

2222
An `etcdctl` initiated compaction works as follows:

etcdmain/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ func NewConfig() *config {
256256
// version
257257
fs.BoolVar(&cfg.printVersion, "version", false, "Print the version and exit.")
258258

259-
// demo flag
260-
fs.IntVar(&cfg.autoCompactionRetention, "experimental-auto-compaction-retention", 0, "Auto compaction retention in hour. 0 means disable auto compaction.")
259+
fs.IntVar(&cfg.autoCompactionRetention, "auto-compaction-retention", 0, "Auto compaction retention for mvcc key value store in hour. 0 means disable auto compaction.")
261260

262261
// backwards-compatibility with v0.4.6
263262
fs.Var(&flags.IPAddressPort{}, "addr", "DEPRECATED: Use --advertise-client-urls instead.")

etcdmain/help.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ clustering flags:
8181
dns srv domain used to bootstrap the cluster.
8282
--strict-reconfig-check
8383
reject reconfiguration requests that would cause quorum loss.
84+
--auto-compaction-retention '0'
85+
auto compaction retention in hour. 0 means disable auto compaction.
8486
8587
proxy flags:
8688
@@ -139,13 +141,7 @@ given by the consensus protocol.
139141
140142
--force-new-cluster 'false'
141143
force to create a new one-member cluster.
142-
143-
144-
experimental flags:
145-
146-
--experimental-auto-compaction-retention '0'
147-
auto compaction retention in hour. 0 means disable auto compaction.
148-
144+
149145
profiling flags:
150146
--enable-pprof 'false'
151147
Enable runtime profiling data via HTTP server. Address is at client URL + "/debug/pprof"

0 commit comments

Comments
 (0)