Book Image

Cassandra High Performance Cookbook

By : Edward Capriolo
Book Image

Cassandra High Performance Cookbook

By: Edward Capriolo

Overview of this book

<p>Apache Cassandra is a fault-tolerant, distributed data store which offers linear scalability allowing it to be a storage platform for large high volume websites. <br /><br />This book provides detailed recipes that describe how to use the features of Cassandra and improve its performance. Recipes cover topics ranging from setting up Cassandra for the first time to complex multiple data center installations. The recipe format presents the information in a concise actionable form.<br /><br />The book describes in detail how features of Cassandra can be tuned and what the possible effects of tuning can be. Recipes include how to access data stored in Cassandra and use third party tools to help you out. The book also describes how to monitor and do capacity planning to ensure it is performing at a high level. Towards the end, it takes you through the use of libraries and third party applications with Cassandra and Cassandra integration with Hadoop.</p>
Table of Contents (20 chapters)
Cassandra High Performance Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Defining seed nodes for Gossip Communication


Cassandra has no single point of failure or master nodes. Instead, it uses an internal process called Gossip to communicate changes about the topology of the Ring between nodes. Seeds are a list that a node attempts to contact on startup to begin gossiping. This recipe shows how to define seed nodes.

Getting ready

The technique for defining Seeds can vary based on the type and size of your deployment. This recipe describes the process for simple deployments using org.apache.Cassandra.locator.SimpleStrategy . For multiple datacenter deployments, place one or more seed in each datacenter, refer to Chapter 8, Multiple Datacenter Deployments.

How to do it...

For the cluster of ten nodes: cassandra01.domain.pvt (10.0.0.1) - cassandra10.domain.pvt (10.0.0.10)

  1. Open <cassandra_home>/conf/cassandra.yaml and locate the seeds section.

    seeds:
        -  10.0.0.1
        -  10.0.0.2
  2. Make this change to each node in the cluster. Restart Cassandra for this change...