Configuration options can be set in three places:
Options set on the command line take precedence over all other sources. Options set in environment variables take precedence over options set in configuration files.
-n - The node name. Defaults to default-name.-c - The advertised public hostname:port for client communication. Defaults to 127.0.0.1:4001.-cl - The listening hostname for client communication. Defaults to advertised ip.-C - A comma separated list of machines in the cluster (i.e "203.0.113.101:7001,203.0.113.102:7001").-CF - The file path containing a comma separated list of machines in the cluster.-clientCAFile - The path of the client CAFile. Enables client cert authentication when present.-clientCert - The cert file of the client.-clientKey - The key file of the client.-configfile - The path of the etcd config file. Defaults to /etc/etcd/etcd.conf.-cors - A comma separated white list of origins for cross-origin resource sharing.-cpuprofile - The path to a file to output cpu profile data. Enables cpu profiling when present.-d - The directory to store log and snapshot. Defaults to the current working directory.-m - The max size of result buffer. Defaults to 1024.-maxsize - The max size of the cluster. Defaults to 9.-r - The max retry attempts when trying to join a cluster. Defaults to 3.-s - The advertised public hostname:port for server communication. Defaults to 127.0.0.1:7001.-sl - The listening hostname for server communication. Defaults to advertised ip.-serverCAFile - The path of the CAFile. Enables client/peer cert authentication when present.-serverCert - The cert file of the server.-serverKey - The key file of the server.-snapshot - Open or close snapshot. Defaults to false.-v - Enable verbose logging. Defaults to false.-vv - Enable very verbose logging. Defaults to false.-version - Print the version and exit.-w - The hostname:port of web interface.The etcd configuration file is written in TOML
and read from /etc/etcd/etcd.conf by default.
advertised_url = "127.0.0.1:4001"
ca_file = ""
cert_file = ""
cors = []
cpu_profile_file = ""
datadir = "."
key_file = ""
listen_host = "127.0.0.1:4001"
machines = []
machines_file = ""
max_cluster_size = 9
max_result_buffer = 1024
max_retry_attempts = 3
name = "default-name"
snapshot = false
verbose = false
very_verbose = false
web_url = ""
[peer]
advertised_url = "127.0.0.1:7001"
ca_file = ""
cert_file = ""
key_file = ""
listen_host = "127.0.0.1:7001"
ETCD_ADVERTISED_URLETCD_CA_FILEETCD_CERT_FILEETCD_CORSETCD_CONFIG_FILEETCD_CPU_PROFILE_FILEETCD_DATADIRETCD_KEY_FILEETCD_LISTEN_HOSTETCD_MACHINESETCD_MACHINES_FILEETCD_MAX_RETRY_ATTEMPTSETCD_MAX_CLUSTER_SIZEETCD_MAX_RESULT_BUFFERETCD_NAMEETCD_SNAPSHOTETCD_VERBOSEETCD_VERY_VERBOSEETCD_WEB_URLETCD_PEER_ADVERTISED_URLETCD_PEER_CA_FILEETCD_PEER_CERT_FILEETCD_PEER_KEY_FILEETCD_PEER_LISTEN_HOST