How can I remove a node from my galera cluster?

user5312201 picture user5312201 · Sep 8, 2015 · Viewed 12.6k times · Source

Is there any better way of doing it,apart from setting 'wsrep_cluster_address='gcomm://' for each node that I want to remove?

Answer

fred picture fred · Mar 30, 2016

I just did this. Seems to have worked. On the node you want to evict

Try

>show global status like 'wsrep%';

Copy paste the wsrep_gcomm_uuid

Go to another node and evict from there assuming the UUID = 1de97dad-f609-11e5-8a50-ce2e621b0c42

SET GLOBAL wsrep_provider_options="evs.evict=1de97dad-f609-11e5-8a50-ce2e621b0c42";

If the node is already shut down or non-responsive you can get the UUID from any other node from wsrep_evs_delayed