You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Blake Eggleston <bl...@ultrablake.com> on 2025/11/13 18:08:19 UTC

[DISCUSS] CEP-58: Satellite Datacenters

Hello dev@,

We'd like to propose CEP-58: Satellite Datacenters for adoption by the community. CEP-58 proposes adding satellite data centers as an alternative to the 3 full DC topology for achieving multi-DC high availability. Satellites are small witness only datacenters (~1/15th full DC size) that replicate the mutation journal, but otherwise don’t run the storage engine. This enables transactionally consistent HA (via failover) with just 2 full DCs and one satellite DC.

This feature benefits users running clusters in a 1 or 2 DC topology for cost or latency reasons, and is especially beneficial for paxos heavy workloads, since only one of the paxos messages needs a satellite round trip. When used in conjunction with witness replicas in the full DCs, single DC clusters could become HA for less than the cost of adding a second datacenter.

The CEP is linked here: https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-58:+Satellite+Datacenters, but please keep the discussion on the dev list.

Thanks!

Blake Eggleston

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Blake Eggleston <bl...@ultrablake.com>.
Hi all,

Just wanted to bump this and see if there were any other thoughts/comments/concerns before going to vote.

Thanks!

Blake

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Blake Eggleston <bl...@ultrablake.com>.
> >data would then start being siloed for recovery when the dc comes back
> Do we expect any degradation due to siloed data in the serving DC, such as higher latency due to SSTables remaining disjoint? 

It's hard to say. Generally I'd expect it to be negligible, but there are scenarios where it could cause problems. Like if there's a bunch of deleted data you can't purge because the data and the tombstones are in different silos. That said, the silos are meant to make recovery faster, but aren't a hard requirement. If you have a use case where extended data siloing is causing problems, it could make sense to disable the recovery silo and just deal with repairs when the partition is healed.

> >I'm not sure why you'd do that, but it is possible
> A scenario in which an application wants strong consistency for a critical dataset (Keyspace1) and relaxed consistency for others (Keyspace2,3,...)

Oh right, *that* makes sense. I meant my example where each keyspace is using a different DC for a satellite. That's a little harder to think of use cases for. Maybe applications where you have different groups of customers in different geographical areas?

On Mon, Nov 17, 2025, at 6:49 PM, Jaydeep Chovatia wrote:
> >data would then start being siloed for recovery when the dc comes back
> Do we expect any degradation due to siloed data in the serving DC, such as higher latency due to SSTables remaining disjoint? 
> 
> >I'm not sure why you'd do that, but it is possible
> 
> A scenario in which an application wants strong consistency for a critical dataset (Keyspace1) and relaxed consistency for others (Keyspace2,3,...)
> 
> 
> Jaydeep
> 
> On Sat, Nov 15, 2025 at 8:40 PM Blake Eggleston <bl...@ultrablake.com> wrote:
>> __
>> 
>>>  1. With the "2 satellite configuration", the data will always remain fully reconciled; in other words, there is no need to keep the data siloed. Is that correct?
>> Not quite. With the 2 satellite configuration, you can switch primaries and there's no need to silo data because it's still talking to all datacenters. However if there's a loss of a DC, or an outage that lasted long enough, then you could disable the secondary satellite (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=399278313#CEP58:SatelliteDatacenters-Secondary/SatelliteDisableProcess) and data would then start being siloed for recovery when the dc comes back. 
>> 
>>>  1. Can a Cassandra cluster have two tables coexist, one with a primary/secondary concept and another active-active?
>> 
>> The replication is configured at the keyspace level, so two tables can't, but 2 keyspaces could. Since it's just a replication setting, there wouldn't be anything stopping you from doing things like having a DC that is a satellite for one keyspace, a primary for another, and a secondary for another. I'm not sure why you'd do that, but it is possible.

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Jaydeep Chovatia <ch...@gmail.com>.
>data would then start being siloed for recovery when the dc comes back
Do we expect any degradation due to siloed data in the serving DC, such as
higher latency due to SSTables remaining disjoint?

>I'm not sure why you'd do that, but it is possible

A scenario in which an application wants strong consistency for a critical
dataset (Keyspace1) and relaxed consistency for others (Keyspace2,3,...)


Jaydeep

On Sat, Nov 15, 2025 at 8:40 PM Blake Eggleston <bl...@ultrablake.com>
wrote:

>
>
>    1. With the "2 satellite configuration", the data will always remain
>    fully reconciled; in other words, there is no need to keep the data siloed.
>    Is that correct?
>
> Not quite. With the 2 satellite configuration, you can switch primaries
> and there's no need to silo data because it's still talking to all
> datacenters. However if there's a loss of a DC, or an outage that lasted
> long enough, then you could disable the secondary satellite (
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=399278313#CEP58:SatelliteDatacenters-Secondary/SatelliteDisableProcess)
> and data would then start being siloed for recovery when the dc comes back.
>
>
>    2. Can a Cassandra cluster have two tables coexist, one with a
>    primary/secondary concept and another active-active?
>
>
> The replication is configured at the keyspace level, so two tables can't,
> but 2 keyspaces could. Since it's just a replication setting, there
> wouldn't be anything stopping you from doing things like having a DC that
> is a satellite for one keyspace, a primary for another, and a secondary for
> another. I'm not sure why you'd do that, but it is possible.
>

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Blake Eggleston <bl...@ultrablake.com>.
>  1. With the "2 satellite configuration", the data will always remain fully reconciled; in other words, there is no need to keep the data siloed. Is that correct?
Not quite. With the 2 satellite configuration, you can switch primaries and there's no need to silo data because it's still talking to all datacenters. However if there's a loss of a DC, or an outage that lasted long enough, then you could disable the secondary satellite (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=399278313#CEP58:SatelliteDatacenters-Secondary/SatelliteDisableProcess) and data would then start being siloed for recovery when the dc comes back. 

>  1. Can a Cassandra cluster have two tables coexist, one with a primary/secondary concept and another active-active?

The replication is configured at the keyspace level, so two tables can't, but 2 keyspaces could. Since it's just a replication setting, there wouldn't be anything stopping you from doing things like having a DC that is a satellite for one keyspace, a primary for another, and a secondary for another. I'm not sure why you'd do that, but it is possible.

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Jaydeep Chovatia <ch...@gmail.com>.
This is a very interesting idea!
A couple of clarifications:

   1. With the "2 satellite configuration", the data will always remain
   fully reconciled; in other words, there is no need to keep the data siloed.
   Is that correct?
   2. Can a Cassandra cluster have two tables coexist, one with a
   primary/secondary concept and another active-active?


Jaydeep

On Thu, Nov 13, 2025 at 10:09 AM Blake Eggleston <bl...@ultrablake.com>
wrote:

> Hello dev@,
>
> We'd like to propose CEP-58: Satellite Datacenters for adoption by the
> community. CEP-58 proposes adding satellite data centers as an alternative
> to the 3 full DC topology for achieving multi-DC high availability.
> Satellites are small witness only datacenters (~1/15th full DC size) that
> replicate the mutation journal, but otherwise don’t run the storage engine.
> This enables transactionally consistent HA (via failover) with just 2 full
> DCs and one satellite DC.
>
> This feature benefits users running clusters in a 1 or 2 DC topology for
> cost or latency reasons, and is especially beneficial for paxos heavy
> workloads, since only one of the paxos messages needs a satellite round
> trip. When used in conjunction with witness replicas in the full DCs,
> single DC clusters could become HA for less than the cost of adding a
> second datacenter.
>
> The CEP is linked here:
> https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-58:+Satellite+Datacenters,
> but please keep the discussion on the dev list.
>
> Thanks!
>
> Blake Eggleston
>

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Blake Eggleston <bl...@ultrablake.com>.
> 
> This describes the goal / intent but not the how.
> 
> Isn’t a satellite approximately equivalent to a dc with only transient / witness replicas defined, and the nodetool command just a coordination of adding new transient replicas and  removing the old? What’s the difference in implementation you’re proposing here ? 

Here I though the CEP was too focused on the how and not the why :)

A satellite is a dc with only witness replicas, and the failover process is just a sequential shuffling of quorums and consistency levels. The distinction between a satellite and a witness DC is that the satellite is used as part of this failover process, and the failover capable replication strategy makes sure that it's used that way for the keyspace it controls replication for.

Re: [DISCUSS] CEP-58: Satellite Datacenters

Posted by Jeff Jirsa <jj...@gmail.com>.
This describes the goal / intent but not the how.

Isn’t a satellite approximately equivalent to a dc with only transient / witness replicas defined, and the nodetool command just a coordination of adding new transient replicas and  removing the old? What’s the difference in implementation you’re proposing here ? 

> On Nov 13, 2025, at 10:09 AM, Blake Eggleston <bl...@ultrablake.com> wrote:
> 
> 
> Hello dev@,
> 
> We'd like to propose CEP-58: Satellite Datacenters for adoption by the community. CEP-58 proposes adding satellite data centers as an alternative to the 3 full DC topology for achieving multi-DC high availability. Satellites are small witness only datacenters (~1/15th full DC size) that replicate the mutation journal, but otherwise don’t run the storage engine. This enables transactionally consistent HA (via failover) with just 2 full DCs and one satellite DC.
> 
> This feature benefits users running clusters in a 1 or 2 DC topology for cost or latency reasons, and is especially beneficial for paxos heavy workloads, since only one of the paxos messages needs a satellite round trip. When used in conjunction with witness replicas in the full DCs, single DC clusters could become HA for less than the cost of adding a second datacenter.
> 
> The CEP is linked here: https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-58:+Satellite+Datacenters, but please keep the discussion on the dev list.
> 
> Thanks!
> 
> Blake Eggleston