Skip to content

Clarify --cluster-init vs --cluster-reset vs nothing at all #9788

Answered by brandond
intelfx asked this question in Q&A
Discussion options

You must be logged in to vote

--cluster-init tells the server to initialize a new etcd cluster. If there are existing etcd datastore files on disk, this flag is ignored, as the cluster has already been initialized.

--cluster-reset performs a minimal start up of the server and resets the etcd cluster membership to contain only the current node. It starts up etcd with the force-new-cluster option (see https://etcd.io/docs/v3.5/op-guide/configuration/), which retains the data in the key-value store but removes all other members from the cluster. It then halts, so you can restart the server for normal operation. When resetting the etcd cluster you can optionally also restore from a snapshot. Resetting is mandatory when re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@intelfx
Comment options

@brandond
Comment options

Answer selected by brandond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants