Chapter 10. Configuring and Deploying Cassandra
In this chapter, youâll build your first cluster and look at the available options for configuring Cassandra nodes, including aspects of Cassandra that affect node behavior in a cluster, such as partitioning, snitches, and replication. We will also share a few pieces of advice as you work toward deploying Cassandra in production. Weâll discuss options to consider in planning deployments and deploying Cassandra in various cloud environments.
Cassandra Cluster Manager
Out of the box, Cassandra works with no configuration at all; you can simply download, decompress, and execute the program to start the server with its default configuration. However, one of the things that makes Cassandra such a powerful technology is its emphasis on configurability and customization. At the same time, the number of options may seem confusing at first.
In order to get practice in building and configuring a cluster, letâs take advantage of a tool called the Cassandra Cluster Manager or ccm
. Built by Sylvain Lebresne and several other contributors, this tool is a set of Python scripts that allow you to run a multinode cluster on a single machine. This allows you to quickly configure a cluster without having to provision additional hardware. Itâs also a great way to introduce some of the most commonly configured options, as discussed in the Cassandra documentation.
Creating Cassandra Clusters for Testing
Itâs often convenient when developing ...
Get Cassandra: The Definitive Guide, (Revised) Third Edition, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.