ROHIT KHURANA
ROHIT KHURANA

Reputation: 983

Do we have any option to configure one way replication in cassandra

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

Answers (3)

Brad Schoening
Brad Schoening

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

Manish Khandelwal
Manish Khandelwal

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

Erick Ramirez
Erick Ramirez

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

Related Questions