Joining Several Bamboo Servers into a Single Ring

This section describes how to join two or more bamboo servers to a single ring.

The first thing to note is that Bamboo servers that support different ip versions cannot be configured to run together successfully. All Bamboo servers should suport either ipv4 or ipv6.

In order to configure several bamboo servers together, there are several changes to be made to each configuration file of each instance.

First of all, inside 'Router', in the 'initargs', we have to add the 'gateway_count' argument followed by the overall number of servers to be configured together. After that, we should specify a list of the gateways. The following paragraph illustrates a sample for configuring two servers together, at the configuration file of one of the servers.

<Router>

class bamboo.router.Router

<initargs>

gateway_count 2

gateway_0 193.167.187.133:5850

gateway_1 193.167.187.31:5850

leaf_set_size 4

digit_values 2

immediate_join true

</initargs>

</Router>

An additional change to be made is assigning the 'min_replica_count' argument to the overall number of servers that are to be configured together. This is illustrated below:

<Dht>

class bamboo.dht.Dht

<initargs>

storage_manager_stage StorageManager

min_replica_count 2

</initargs>

</Dht>