droonga-engine-join puts an orphan Droonga Engine node in an existing Droonga cluster as a new replica node.
For example, if there is an existing Droonga Engine node
192.168.100.50 which is a replica node in a cluster and you are logged in to a computer
192.168.100.10 which is already prepared orphan Engine node in the same network segment, the command line to put the joining node
192.168.100.10 in the cluster as a new replica node is:
(on 192.168.100.10) $ droonga-engine-join --host 192.168.100.10 \ --receiver-host 192.168.100.10 \ --replica-source-host 192.168.100.50 Start to join a new node 192.168.100.10 to the cluster of 192.168.100.50 via 192.168.100.10 (this host) port = 10031 tag = droonga dataset = Default Source Cluster ID: 8951f1b01583c1ffeb12ed5f4093210d28955988 Changing role of the joining node... Configuring the joining node as a new replica for the cluster... Registering new node to existing nodes... Changing role of the source node... Getting the timestamp of the last processed message in the source node... The timestamp of the last processed message at the source node: 2015-05-07T02:39:50.334377Z Setting new node to ignore messages older than the timestamp... Copying data from the source node... 100% done (maybe 00:00:00 remaining) Restoring role of the source node... Restoring role of the joining node... Done.
-1means “no limit”.
This is installed as a part of a rubygems package
# gem install droonga-engine