etcd.conf.yml.sample 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # This is the configuration file for the etcd server.
  2. # Human-readable name for this member.
  3. name: 'default'
  4. # Path to the data directory.
  5. data-dir:
  6. # Path to the dedicated wal directory.
  7. wal-dir:
  8. # Number of committed transactions to trigger a snapshot to disk.
  9. snapshot-count: 10000
  10. # Time (in milliseconds) of a heartbeat interval.
  11. heartbeat-interval: 100
  12. # Time (in milliseconds) for an election to timeout.
  13. election-timeout: 1000
  14. # Raise alarms when backend size exceeds the given quota. 0 means use the
  15. # default quota.
  16. quota-backend-bytes: 0
  17. # List of comma separated URLs to listen on for peer traffic.
  18. listen-peer-urls: http://localhost:2380
  19. # List of comma separated URLs to listen on for client traffic.
  20. listen-client-urls: http://localhost:2379
  21. # Maximum number of snapshot files to retain (0 is unlimited).
  22. max-snapshots: 5
  23. # Maximum number of wal files to retain (0 is unlimited).
  24. max-wals: 5
  25. # Comma-separated white list of origins for CORS (cross-origin resource sharing).
  26. cors:
  27. # List of this member's peer URLs to advertise to the rest of the cluster.
  28. # The URLs needed to be a comma-separated list.
  29. initial-advertise-peer-urls: http://localhost:2380
  30. # List of this member's client URLs to advertise to the public.
  31. # The URLs needed to be a comma-separated list.
  32. advertise-client-urls: http://localhost:2379
  33. # Discovery URL used to bootstrap the cluster.
  34. discovery:
  35. # Valid values include 'exit', 'proxy'
  36. discovery-fallback: 'proxy'
  37. # HTTP proxy to use for traffic to discovery service.
  38. discovery-proxy:
  39. # DNS domain used to bootstrap initial cluster.
  40. discovery-srv:
  41. # Initial cluster configuration for bootstrapping.
  42. initial-cluster:
  43. # Initial cluster token for the etcd cluster during bootstrap.
  44. initial-cluster-token: 'etcd-cluster'
  45. # Initial cluster state ('new' or 'existing').
  46. initial-cluster-state: 'new'
  47. # Reject reconfiguration requests that would cause quorum loss.
  48. strict-reconfig-check: false
  49. # Valid values include 'on', 'readonly', 'off'
  50. proxy: 'off'
  51. # Time (in milliseconds) an endpoint will be held in a failed state.
  52. proxy-failure-wait: 5000
  53. # Time (in milliseconds) of the endpoints refresh interval.
  54. proxy-refresh-interval: 30000
  55. # Time (in milliseconds) for a dial to timeout.
  56. proxy-dial-timeout: 1000
  57. # Time (in milliseconds) for a write to timeout.
  58. proxy-write-timeout: 5000
  59. # Time (in milliseconds) for a read to timeout.
  60. proxy-read-timeout: 0
  61. client-transport-security:
  62. # DEPRECATED: Path to the client server TLS CA file.
  63. ca-file:
  64. # Path to the client server TLS cert file.
  65. cert-file:
  66. # Path to the client server TLS key file.
  67. key-file:
  68. # Enable client cert authentication.
  69. client-cert-auth: false
  70. # Path to the client server TLS trusted CA key file.
  71. trusted-ca-file:
  72. # Client TLS using generated certificates
  73. auto-tls: false
  74. peer-transport-security:
  75. # DEPRECATED: Path to the peer server TLS CA file.
  76. ca-file:
  77. # Path to the peer server TLS cert file.
  78. cert-file:
  79. # Path to the peer server TLS key file.
  80. key-file:
  81. # Enable peer client cert authentication.
  82. client-cert-auth: false
  83. # Path to the peer server TLS trusted CA key file.
  84. trusted-ca-file:
  85. # Peer TLS using generated certificates.
  86. auto-tls: false
  87. # Enable debug-level logging for etcd.
  88. debug: false
  89. # Specify a particular log level for each etcd package (eg: 'etcdmain=CRITICAL,etcdserver=DEBUG'.
  90. log-package-levels:
  91. # Force to create a new one member cluster.
  92. force-new-cluster: false