Browse Source

Merge pull request #5701 from xiang90/rm_exp

*: make auto-compaction-retention non-experimental
Xiang Li 9 years ago
parent
commit
e4f56c4eb6

+ 5 - 0
Documentation/op-guide/configuration.md

@@ -135,6 +135,11 @@ To start etcd automatically using custom settings at startup in Linux, using a [
 + default: false
 + default: false
 + env variable: ETCD_STRICT_RECONFIG_CHECK
 + 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 Flags
 
 
 `--proxy` prefix flags configures etcd to run in [proxy mode][proxy].
 `--proxy` prefix flags configures etcd to run in [proxy mode][proxy].

+ 2 - 2
Documentation/op-guide/maintenance.md

@@ -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.
 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
 ```sh
 # keep one hour of history
 # keep one hour of history
-$ etcd --experimental-auto-compaction-retention=1
+$ etcd --auto-compaction-retention=1
 ```
 ```
 
 
 An `etcdctl` initiated compaction works as follows:
 An `etcdctl` initiated compaction works as follows:

+ 1 - 2
etcdmain/config.go

@@ -256,8 +256,7 @@ func NewConfig() *config {
 	// version
 	// version
 	fs.BoolVar(&cfg.printVersion, "version", false, "Print the version and exit.")
 	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
 	// backwards-compatibility with v0.4.6
 	fs.Var(&flags.IPAddressPort{}, "addr", "DEPRECATED: Use --advertise-client-urls instead.")
 	fs.Var(&flags.IPAddressPort{}, "addr", "DEPRECATED: Use --advertise-client-urls instead.")

+ 3 - 7
etcdmain/help.go

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