Skip to content

How to remove existing instances/nodes from the nats/jetstream cluster? #3790

Answered by jnmoyne
arpanps asked this question in Q&A
Discussion options

You must be logged in to vote

You can send the process of the nats-server a "lame duck" signal telling it to shut down in an orderly manner (e.g. nats-server --signal ldm), but JetStream still retains the server in it's metadata (meaning it's expecting it to come back to the cluster at some point in the future), if you want to remove the server 'forever' you can then use the nats CLI tool to issue a 'peer remove' command for the cluster to permanently remove the server from the cluster metadata (e.g. nats server raft peer-remove which you will have to do using the system account).
To see what actual control message is being sent to the cluster to do that peer remove add the --trace option to your nats command.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arpanps
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