go.etcd.io/etcd@v3.3.27+incompatible/etcd.conf.yml.sample (about)

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