1# This is the configuration file for the etcd server. 2 3# Human-readable name for this member. 4name: 'default' 5 6# Path to the data directory. 7data-dir: 8 9# Path to the dedicated wal directory. 10wal-dir: 11 12# Number of committed transactions to trigger a snapshot to disk. 13snapshot-count: 10000 14 15# Time (in milliseconds) of a heartbeat interval. 16heartbeat-interval: 100 17 18# Time (in milliseconds) for an election to timeout. 19election-timeout: 1000 20 21# Raise alarms when backend size exceeds the given quota. 0 means use the 22# default quota. 23quota-backend-bytes: 0 24 25# List of comma separated URLs to listen on for peer traffic. 26listen-peer-urls: http://localhost:2380 27 28# List of comma separated URLs to listen on for client traffic. 29listen-client-urls: http://localhost:2379 30 31# Maximum number of snapshot files to retain (0 is unlimited). 32max-snapshots: 5 33 34# Maximum number of wal files to retain (0 is unlimited). 35max-wals: 5 36 37# Comma-separated white list of origins for CORS (cross-origin resource sharing). 38cors: 39 40# List of this member's peer URLs to advertise to the rest of the cluster. 41# The URLs needed to be a comma-separated list. 42initial-advertise-peer-urls: http://localhost:2380 43 44# List of this member's client URLs to advertise to the public. 45# The URLs needed to be a comma-separated list. 46advertise-client-urls: http://localhost:2379 47 48# Discovery URL used to bootstrap the cluster. 49discovery: 50 51# Valid values include 'exit', 'proxy' 52discovery-fallback: 'proxy' 53 54# HTTP proxy to use for traffic to discovery service. 55discovery-proxy: 56 57# DNS domain used to bootstrap initial cluster. 58discovery-srv: 59 60# Initial cluster configuration for bootstrapping. 61initial-cluster: 62 63# Initial cluster token for the etcd cluster during bootstrap. 64initial-cluster-token: 'etcd-cluster' 65 66# Initial cluster state ('new' or 'existing'). 67initial-cluster-state: 'new' 68 69# Reject reconfiguration requests that would cause quorum loss. 70strict-reconfig-check: false 71 72# Accept etcd V2 client requests 73enable-v2: true 74 75# Enable runtime profiling data via HTTP server 76enable-pprof: true 77 78# Valid values include 'on', 'readonly', 'off' 79proxy: 'off' 80 81# Time (in milliseconds) an endpoint will be held in a failed state. 82proxy-failure-wait: 5000 83 84# Time (in milliseconds) of the endpoints refresh interval. 85proxy-refresh-interval: 30000 86 87# Time (in milliseconds) for a dial to timeout. 88proxy-dial-timeout: 1000 89 90# Time (in milliseconds) for a write to timeout. 91proxy-write-timeout: 5000 92 93# Time (in milliseconds) for a read to timeout. 94proxy-read-timeout: 0 95 96client-transport-security: 97 # Path to the client server TLS cert file. 98 cert-file: 99 100 # Path to the client server TLS key file. 101 key-file: 102 103 # Enable client cert authentication. 104 client-cert-auth: false 105 106 # Path to the client server TLS trusted CA cert file. 107 trusted-ca-file: 108 109 # Client TLS using generated certificates 110 auto-tls: false 111 112peer-transport-security: 113 # Path to the peer server TLS cert file. 114 cert-file: 115 116 # Path to the peer server TLS key file. 117 key-file: 118 119 # Enable peer client cert authentication. 120 client-cert-auth: false 121 122 # Path to the peer server TLS trusted CA cert file. 123 trusted-ca-file: 124 125 # Peer TLS using generated certificates. 126 auto-tls: false 127 128# Enable debug-level logging for etcd. 129debug: false 130 131logger: zap 132 133# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd. 134log-outputs: [stderr] 135 136# Force to create a new one member cluster. 137force-new-cluster: false 138 139auto-compaction-mode: periodic 140auto-compaction-retention: "1" 141