Cassandra Multi-Data center configuration

Source: Internet
Author: User
Tags cassandra

Cassandra Default build Keyspace time, it is necessary to develop a topology strategy, small data directly with a single data center Simplestrategy, the online data are not specifically how to configure the multi-data center, here simply Paste

Cassandra.yaml inside Modify Endpoint_snitch

The specific Snitch method has


Default, Single data center


Officially recommended for use in production environments, the rack and DC names of this node are stored in and will be propagated to all nodes by gossip this peer-to-peer protocol if Cassandra- file exists, Cassandra will combine the results of the two properties files, if there is a configuration of the same node in the two properties file, the configuration of the shall prevail.


DC and rack are explicitly defined in the file

When building a keyspace, this designation

" Test_keyspace " With REPLICATION = {'class'networktopologystrategy'  DC1'3'dc2'2};

It means using the network multi-data center strategy, there are two data centers, DC1 replica factor for 3,DC2 replica factor for 2

Refer to Address

Cassandra Multi-Datacenter configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.