etcd.conf.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # This is the configuration file for the etcd server.
  18. # Human-readable name for this member.
  19. name: 'default'
  20. # Path to the data directory.
  21. data-dir:
  22. # Path to the dedicated wal directory.
  23. wal-dir:
  24. # Number of committed transactions to trigger a snapshot to disk.
  25. snapshot-count: 10000
  26. # Time (in milliseconds) of a heartbeat interval.
  27. heartbeat-interval: 100
  28. # Time (in milliseconds) for an election to timeout.
  29. election-timeout: 1000
  30. # Raise alarms when backend size exceeds the given quota. 0 means use the
  31. # default quota.
  32. quota-backend-bytes: 0
  33. # List of comma separated URLs to listen on for peer traffic.
  34. listen-peer-urls: http://localhost:2380
  35. # List of comma separated URLs to listen on for client traffic.
  36. listen-client-urls: http://localhost:2379
  37. # Maximum number of snapshot files to retain (0 is unlimited).
  38. max-snapshots: 5
  39. # Maximum number of wal files to retain (0 is unlimited).
  40. max-wals: 5
  41. # Comma-separated white list of origins for CORS (cross-origin resource sharing).
  42. cors:
  43. # List of this member's peer URLs to advertise to the rest of the cluster.
  44. # The URLs needed to be a comma-separated list.
  45. initial-advertise-peer-urls: http://localhost:2380
  46. # List of this member's client URLs to advertise to the public.
  47. # The URLs needed to be a comma-separated list.
  48. advertise-client-urls: http://localhost:2379
  49. # Discovery URL used to bootstrap the cluster.
  50. discovery:
  51. # Valid values include 'exit', 'proxy'
  52. discovery-fallback: 'proxy'
  53. # HTTP proxy to use for traffic to discovery service.
  54. discovery-proxy:
  55. # DNS domain used to bootstrap initial cluster.
  56. discovery-srv:
  57. # Initial cluster configuration for bootstrapping.
  58. initial-cluster:
  59. # Initial cluster token for the etcd cluster during bootstrap.
  60. initial-cluster-token: 'etcd-cluster'
  61. # Initial cluster state ('new' or 'existing').
  62. initial-cluster-state: 'new'
  63. # Reject reconfiguration requests that would cause quorum loss.
  64. strict-reconfig-check: false
  65. # Accept etcd V2 client requests
  66. enable-v2: true
  67. # Enable runtime profiling data via HTTP server
  68. enable-pprof: true
  69. # Valid values include 'on', 'readonly', 'off'
  70. proxy: 'off'
  71. # Time (in milliseconds) an endpoint will be held in a failed state.
  72. proxy-failure-wait: 5000
  73. # Time (in milliseconds) of the endpoints refresh interval.
  74. proxy-refresh-interval: 30000
  75. # Time (in milliseconds) for a dial to timeout.
  76. proxy-dial-timeout: 1000
  77. # Time (in milliseconds) for a write to timeout.
  78. proxy-write-timeout: 5000
  79. # Time (in milliseconds) for a read to timeout.
  80. proxy-read-timeout: 0
  81. client-transport-security:
  82. # Path to the client server TLS cert file.
  83. cert-file:
  84. # Path to the client server TLS key file.
  85. key-file:
  86. # Enable client cert authentication.
  87. client-cert-auth: false
  88. # Path to the client server TLS trusted CA cert file.
  89. trusted-ca-file:
  90. # Client TLS using generated certificates
  91. auto-tls: false
  92. peer-transport-security:
  93. # Path to the peer server TLS cert file.
  94. cert-file:
  95. # Path to the peer server TLS key file.
  96. key-file:
  97. # Enable peer client cert authentication.
  98. client-cert-auth: false
  99. # Path to the peer server TLS trusted CA cert file.
  100. trusted-ca-file:
  101. # Peer TLS using generated certificates.
  102. auto-tls: false
  103. # Enable debug-level logging for etcd.
  104. debug: false
  105. logger: zap
  106. # Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd.
  107. log-outputs: [stderr]
  108. # Force to create a new one member cluster.
  109. force-new-cluster: false
  110. auto-compaction-mode: periodic
  111. auto-compaction-retention: "1"