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.
See also the tutorial about adding new replica to a Droonga cluster.
--no-copy
--host=NAME
--replica-source-host=NAME
--port=PORT
10031
by default.--tag=TAG
droonga
by default.--dataset=NAME
Default
by default.--receiver-host=NAME
--records-per-second=N
-1
means “no limit”.
100
by default.--progress-interval-seconds=SECONDS
3
by default.--verbose
-h
, --help
This is installed as a part of a rubygems package droonga-engine
.
# gem install droonga-engine