Reputation: 983
I have configured DR and DC sides in Cassandra replication. What I want is, I want to configure replication from DC to DR but not from DR to DC.
Do we have the option to mark DR nodes readonly?
Main challenge is, application team want to keep configuration like, DR application should point to DR nodes and DC applications should point to DC node. But they don't want to replicate DR data(May be test data) to DC until we'll switch to live traffic to DR.
Another thing, they agree if we can protect DR node from write queries.
Upvotes: 0
Views: 199
Reputation: 1381
DataStax DSE has Advanced Replication which provides hub-and-spoke capabilities. However, this is only available the Enterprise Edition, not in open source Apache Cassandra.
Upvotes: 1
Reputation: 2310
No you cannot do that. If your main intent is to use DR
nodes as read only nodes, you can configure your clients to write on DC
nodes.
Upvotes: 1
Reputation: 16363
That isn't possible at all. All DCs in Cassandra operate in active-active mode. There is no concept of passive/DR mode.
In any case, unless you are writing to the DR DC all writes will be coming from the "primary" DC in your cluster. Cheers!
Upvotes: 4