Automatic rebalancing
Automatic rebalancing is the process of rebalancing the replicas from currently active nodes to newly added ones.
Now, let's take the cluster from the previous section, which had five active nodes and one dead node. In this section, we are going to observe how data is rebalanced once we add a new node to a cluster. The following screenshot shows the node replication status:
In this cluster of five active nodes, let's add two more nodes as follows:
$ cockroach start \ --insecure \ --store=fault-node5 \ --listen-addr=localhost:26261 \ --http-addr=localhost:8084 \ --join=localhost:26257,localhost:26258,localhost:26259 \ --background cockroach start \ --insecure \ --store=fault-node7 \ --listen-addr=localhost:26263 \ --http-addr=localhost:8086 \ --join=localhost:26257,localhost:26258,localhost:26259 \ --background
After some time, you should...