YUKI Hiroshi
null+****@clear*****
Wed May 14 11:43:40 JST 2014
YUKI Hiroshi 2014-05-14 11:43:40 +0900 (Wed, 14 May 2014) New Revision: 362d041ea51d652d6a31092bc6c26f1c81b5c36f https://github.com/droonga/droonga.org/commit/362d041ea51d652d6a31092bc6c26f1c81b5c36f Message: Add step to join the cluster Modified files: tutorial/groonga/index.md Modified: tutorial/groonga/index.md (+10 -3) =================================================================== --- tutorial/groonga/index.md 2014-05-09 19:44:14 +0900 (3690018) +++ tutorial/groonga/index.md 2014-05-14 11:43:40 +0900 (7757560) @@ -128,8 +128,7 @@ To start them, run commands like following on each Droonga node: --daemon \ --pid-file=$PWD/droonga-http-server.pid # serf agent -node="${node}:10031" -bind=$host \ - -event-handler="droonga-handle-serf-event --base-dir=$PWD" & - # cat $! > $PWD/droonga-serf-agent.pid + -event-handler="droonga-handle-serf-event --base-dir=$PWD" Note that you have to specify the host name of the Droonga node itself via some options. It will be used to communicate with other Droonga nodes in the cluster. @@ -140,11 +139,19 @@ So you have to specify different host name on another Droonga node, like: # droonga-engine --host=$host \ ... +After that, run following command to start alive monitoring, on the node "192.168.0.10": + + # serf join 192.168.0.11 + +By the command two nodes construct a cluster and they monitor each other. +If one of nodes dies and there is any still alive node, survivor(s) will work as the Droonga cluster. +Then you can recover the dead node and re-join it to the cluster secretly. + To stop services, run commands like following on each Droonga node: # kill $(cat ~/droonga/droonga-engine.pid) # kill $(cat ~/droonga/droonga-http-server.pid) - # kill $(cat ~/droonga/droonga-serf-agent.pid) + # serf leave ### Create a table -------------- next part -------------- HTML����������������������������... ダウンロード