ETCD version:3.0.15
Git sha:fc00305
Go version:go1.6.3
Go OS/ARCH:LINUX/AMD64
USAGE:ETCD [Flags]
Start an ETCD server
ETCD--version
Show the version of ETCD
etcd-h | --help
Show the help information about ETCD
ETCD--config-file
Path to the server configuration file
Member Flags:
--name ' Default '
Human-readable name for this member.
--data-dir ' ${name}.etcd '
Path to the data directory.
--wal-dir "
Path to the dedicated Wal directory.
--snapshot-count ' 10000 '
Number of committed transactions to trigger a snapshot to disk.
--heartbeat-interval ' 100 '
Time (in milliseconds) of a heartbeat interval.
--election-timeout ' 1000 '
Time (in milliseconds) for a election to timeout. See tuning documentation for details.
--listen-peer-urls ' http://localhost:2380 'ETCD as a distributed node communication port, supporting multiple Rul, ' http://localhost:2380, http://localhost:7001 '
List of URLs to listen in for peer traffic.
--listen-client-urls ' http://localhost:2379 'port for client operations ETCD API
List of URLs to listen onFor client Traffic.if--listen-client-urls is set when the service starts, you need to set the--advertise-client-urls
--max-snapshots ' 5 '
Maximum number of snapshot files to retain (0 is unlimited).
--max-wals ' 5 '
Maximum number of Wal files to retain (0 is unlimited).
--cors "
comma-separated Whitelist of Origins for CORS (cross-origin resource sharing).
--quota-backend-bytes ' 0 '
Raise alarms when backend size exceeds the given quota (0 defaults to low space quota).
Clustering Flags:
--initial-advertise-peer-urls ' http://localhost:2380 ' as the peer interface in the cluster , if you set up--initial-advertise-peer-urls when you start the service, you need to set the--initial-cluster
List of this member's peer URLs to advertise to the rest of the cluster.
--initial-cluster ' default=http://localhost:2380 'STATIC initializes the cluster with the content advertised peer URLsthat match the initial-advertise-peer-urls of each node.
Initial cluster configuration for bootstrapping.
--initial-cluster-state ' new '
Initial cluster state (' new ' or ' existing ').
--initial-cluster-token ' Etcd-cluster 'by setting the token for the ETCD cluster, different cluster IDs and MemberID are generated, distinguishing the other groups. When there are multiple clusters in the system.
Initial cluster token for the ETCD cluster during bootstrap.
Specifying this can protect if interaction running multiple when unintended cross-cluster clusters.
--advertise-client-urls ' http://localhost:2379 'as a distributed client connection port formember to other member, proxy, client in cluster.
List of this member ' s client URLs to advertise to the public.
The client URLs advertised should is accessible to machines, the talk to Etcd cluster. ETCD Client Libraries Parse these URLs to connect to the cluster.
--discovery "
Discovery URL used to bootstrap the cluster.
--discovery-fallback ' proxy '
Expected behavior (' exit ' or ' proxy ') when discovery services fails.
"Proxy" supports V2 API only.
--discovery-proxy "
HTTP Proxy to use for traffic to discovery service.
--discovery-srv "
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:
"Proxy" supports V2 API only.
--proxy ' off '
Proxy mode setting (' Off ', ' readonly ' or ' on ').
--proxy-failure-wait 5000
Time (in milliseconds) an endpoint is held in a failed state.
--proxy-refresh-interval 30000
Time (in milliseconds) of the endpoints refresh interval.
--proxy-dial-timeout 1000
Time (in milliseconds) for a dial to timeout.
--proxy-write-timeout 5000
Time (in milliseconds) for a write to timeout.
--proxy-read-timeout 0
Time (in milliseconds) for a read to timeout.
Security Flags:
--ca-file "[DEPRECATED]
Path to the client server TLS CA file. '-ca-file ca.crt ' could is replaced by '-trusted-ca-file Ca.crt-client-cert-auth ' and Etcd'll perform the same.
--cert-file "
Path to the client server, TLS cert file.
--key-file "
Path to the client server, TLS key file.
--client-cert-auth ' false '
Enable client Cert authentication.
--trusted-ca-file "
Path to the client server TLS trusted CA key file.
--auto-tls ' false '
Client TLS using generated certificates.
--peer-ca-file "[DEPRECATED]
Path to the peer server TLS CA file. '-peer-ca-file ca.crt ' could is replaced by '-peer-trusted-ca-file Ca.crt-peer-client-cert-auth ' and etcd'll perform th E Same.
--peer-cert-file "
Path to the peer server, TLS cert file.
--peer-key-file "
Path to the peer server, TLS key file.
--peer-client-cert-auth ' false '
Enable peer Client Cert authentication.
--peer-trusted-ca-file "
Path to the peer server TLS trusted CA file.
--peer-auto-tls ' false '
Peer TLS using self-generated certificates if--peer-key-file and--peer-cert-file is not provided.
Logging Flags
--debug ' false '
Enable Debug-level logging for ETCD.
--log-package-levels "
Specify a particular log level is ETCD package (eg: ' Etcdmain=critical,etcdserver=debug ').
Unsafe flags:
Cautious when using unsafe flags because it'll break the guarantees
Given by the consensus protocol.
--force-new-cluster ' false '
Force to create a new One-member cluster.
Profiling Flags:
--enable-pprof ' false '
Enable runtime profiling data via HTTP server. Address is at client URL + "/debug/pprof"
ETCD Command Description Etcd version:3.0.15