[Groonga-commit] droonga/droonga-engine at b5e7495 [master] Restart serf agent of unjoined node

Back to archive index

YUKI Hiroshi null+****@clear*****
Sun Nov 30 00:44:14 JST 2014


YUKI Hiroshi	2014-11-30 00:44:14 +0900 (Sun, 30 Nov 2014)

  New Revision: b5e74955d0db34aa562530522f39a988524d0309
  https://github.com/droonga/droonga-engine/commit/b5e74955d0db34aa562530522f39a988524d0309

  Message:
    Restart serf agent of unjoined node

  Modified files:
    bin/droonga-engine-unjoin

  Modified: bin/droonga-engine-unjoin (+5 -0)
===================================================================
--- bin/droonga-engine-unjoin    2014-11-30 00:44:01 +0900 (93d8f07)
+++ bin/droonga-engine-unjoin    2014-11-30 00:44:14 +0900 (d55a841)
@@ -109,6 +109,11 @@ run_remote_command(options.replica_remove_node, "set_replicas",
                    "node"    => options.replica_remove_node,
                    "dataset" => options.dataset,
                    "hosts"   => [options.replica_remove_host])
+# It must be restarted to be removed from the Serf cluster.
+# Otherwise protocol adapters unexpectedly tries to connect
+# to the unjoined node.
+run_remote_command(options.replica_remove_node, "restart_serf_agent",
+                   "node"    => options.replica_remove_node)
 
 puts "Done."
 
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index