Clarification on using --initial-cluster-state=new for multi-site etcd deployment #21306
-
|
Hi, We are deploying an etcd cluster across multiple Kubernetes clusters (multi-site). Each site runs one etcd member, and all members are defined statically using: --initial-cluster= We observed that: This seems to work reliably in our tests. However, based on documentation our understanding is: Questions: We want to ensure this deployment model is safe and supported. Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
YES
"existing" is only required when you start a newly added member. For example, you just add a new member by executing When you start the cluster in the very first time and there isn't any local data yet, then you must use If there is already local data, then it doesn't matter what's the value. (of course, it's recommended to use Also refer to https://github.com/ahrtr/etcd-issues/blob/master/docs/cluster_id_mismatch.md |
Beta Was this translation helpful? Give feedback.
YES
"existing" is only required when you start a newly added member. For example, you just add a new member by executing
etcdctl member add xxx, and when you start the new member, you must useexistingin such case.When you start the cluster in the very first time and there isn't any local data yet, then you must use
new.If there is already local data, then it doesn't matter what's the value. (of course, it's recommended…