Merge pull request #5701 from xiang90/rm_exp

*: make auto-compaction-retention non-experimental
This commit is contained in:
Xiang Li 2016-06-17 11:02:43 -07:00 committed by GitHub
commit e4f56c4eb6
4 changed files with 11 additions and 11 deletions

View File

@ -135,6 +135,11 @@ To start etcd automatically using custom settings at startup in Linux, using a [
+ default: false
+ env variable: ETCD_STRICT_RECONFIG_CHECK
### --auto-compaction-retention
+ Auto compaction retention for mvcc key value store in hour. 0 means disable auto compaction.
+ default: 0
+ env variable: ETCD_AUTO_COMPACTION_RETENTION
## Proxy Flags
`--proxy` prefix flags configures etcd to run in [proxy mode][proxy].

View File

@ -12,11 +12,11 @@ Since etcd keeps an exact history of its keyspace, this history should be period
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.
`etcd` can be set to automatically compact the keyspace with the `--experimental-auto-compaction` option with a period of hours:
`etcd` can be set to automatically compact the keyspace with the `--auto-compaction` option with a period of hours:
```sh
# keep one hour of history
$ etcd --experimental-auto-compaction-retention=1
$ etcd --auto-compaction-retention=1
```
An `etcdctl` initiated compaction works as follows:

View File

@ -256,8 +256,7 @@ func NewConfig() *config {
// version
fs.BoolVar(&cfg.printVersion, "version", false, "Print the version and exit.")
// demo flag
fs.IntVar(&cfg.autoCompactionRetention, "experimental-auto-compaction-retention", 0, "Auto compaction retention in hour. 0 means disable auto compaction.")
fs.IntVar(&cfg.autoCompactionRetention, "auto-compaction-retention", 0, "Auto compaction retention for mvcc key value store in hour. 0 means disable auto compaction.")
// backwards-compatibility with v0.4.6
fs.Var(&flags.IPAddressPort{}, "addr", "DEPRECATED: Use --advertise-client-urls instead.")

View File

@ -81,6 +81,8 @@ clustering flags:
dns srv domain used to bootstrap the cluster.
--strict-reconfig-check
reject reconfiguration requests that would cause quorum loss.
--auto-compaction-retention '0'
auto compaction retention in hour. 0 means disable auto compaction.
proxy flags:
@ -139,13 +141,7 @@ given by the consensus protocol.
--force-new-cluster 'false'
force to create a new one-member cluster.
experimental flags:
--experimental-auto-compaction-retention '0'
auto compaction retention in hour. 0 means disable auto compaction.
profiling flags:
--enable-pprof 'false'
Enable runtime profiling data via HTTP server. Address is at client URL + "/debug/pprof"