mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3887 from ypu/flags
etcdmain: Add max-snapshots and max-wals to help
This commit is contained in:
commit
37b34b334b
@ -14,6 +14,8 @@
|
||||
|
||||
package etcdmain
|
||||
|
||||
import "strconv"
|
||||
|
||||
var (
|
||||
usageline = `usage: etcd [flags]
|
||||
start an etcd server
|
||||
@ -43,6 +45,10 @@ member flags:
|
||||
list of URLs to listen on for peer traffic.
|
||||
--listen-client-urls 'http://localhost:2379,http://localhost:4001'
|
||||
list of URLs to listen on for client traffic.
|
||||
--max-snapshots '` + strconv.Itoa(defaultMaxSnapshots) + `'
|
||||
maximum number of snapshot files to retain (0 is unlimited).
|
||||
--max-wals '` + strconv.Itoa(defaultMaxWALs) + `'
|
||||
maximum number of wal files to retain (0 is unlimited).
|
||||
-cors ''
|
||||
comma-separated whitelist of origins for CORS (cross-origin resource sharing).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user