I would like to configure the following multi-datacenter Cassandra cluster:
DC-EUROPE
has 3 Cassandra nodes (1.1.1.1
,1.1.1.2
,1.1.1.3
)DC-ASIA
has 3 Cassandra nodes (2.2.2.1
,2.2.2.2
,2.2.2.3
)- Each DC has an eventually consistent full-copy (1:1) of the keyspace. Services running in
DC-EUROPE
will always queryDC-EUROPE
and services running inDC-ASIA
will always queryDC-ASIA
. - The data has a replication factor of
2
across the 3 nodes in each DC.
How could I setup this configuration using NetworkTopologyStrategy
?
The NetworkTopologySettings needs to be specified as part of the create keyspace statement.
The correct configuration here would be the following: