O'Reilly logo

Apache Cassandra Essentials by Nitin Padalia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding nodes to our cluster

Now, let's extend our node to a five-node cluster from a three-node cluster. Let's take two new loopback IPs as 127.0.0.4 and 127.0.0.5.

Note

Here, we're using loopback IPs for the simplicity of our example; if you're running using the same on a single machine, ensure that it has enough RAM and CPU on the host machine.

The cassandra.yaml file with key configuration options for these two new nodes will look as follows:

Adding nodes to our cluster

A sample cassandra.yaml file for node 5 with some key configuration parameters is shown in the following image. Here, both the nodes are using node 2 with the IP address 127.0.0.2 as the seed node:

In the preceding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required