Is it possible to convert a consul server node into a consul client node

111 views
Skip to first unread message

Chris White

unread,
Jul 15, 2016, 4:57:41 PM7/15/16
to Consul
I have a consul server node which I now want to make a consul client node. I have tried the following to make it a client node but it doesn't seem to work.

On the node I want to convert I run the 'consul leave'  command and this seems to work as all nodes show the node in the leave state when I run the 'consul members' command. I then remove the consul directory from the node and start consul on the node in client mode and do a 'consul join' command to one of the other servers in the cluster. Again this works and when I run the 'consul members' command on each node it shows the node as a client. However, when I look in the consul log on each of the servers I see an EventMemberLeave message saying the node has left and on the cluster leader I see the message saying node is deregistered, but it is still trying to contact the node as if it were a server and also the peers.json file on each of the server nodes still has the node as an entry. This is causing problems when the node is stopped or restarted as the node is still being treated as part of the server quorum.

Any suggestions on how this can be achieved?

James Phillips

unread,
Jul 17, 2016, 12:46:53 AM7/17/16
to consu...@googlegroups.com
Hi Chris,

Your procedure sounds correct. It's odd that the leave doesn't remove it from the Raft peers. Can you link to a gist with some log files on an existing server and a node you are trying to transition over?

-- James

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/cf08b626-6dc2-413d-8bd0-d00761c08091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris White

unread,
Jul 17, 2016, 4:06:01 PM7/17/16
to consu...@googlegroups.com
I just tried again and now it is working. I think the original failure might have been because the node I was trying to remove was the cluster leader.

You received this message because you are subscribed to a topic in the Google Groups "Consul" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/consul-tool/oPixUCNEQfg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/CAGoWc07atq2c3hdYMX97ePS9ED4s7oqRYZtptZsBxv1h29VGNA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages