I want to get sharding up together with replication. Don't get me wrong, I managed to install a sharded cluster that accesses replication sets as shards.
My problem is to get the sharded cluster processes replicated just like this:
[ Replication Set 1 ] <--> [ Replication Set 2 ] <--> [ Replication Set 3 ]
| | |
v v v
[ Sharded Cluster 1 ] [ Sharded Cluster 2 ] [ Sharded Cluster 3 ]
| | |
|--> [ Shard 1 ] |--> [ Shard 1 ] |--> [ Shard 1 ]
|--> [ Shard 2 ] |--> [ Shard 2 ] |--> [ Shard 2 ]
|--> [ Shard 3 ] |--> [ Shard 3 ] |--> [ Shard 3 ]
I'd prefere this setup above replicating cluster shards due to the single point of failure. When sharded cluster (e.g. the mongos
process) dies, then I still got 2 processes up and running.
Is this kind of setup possible in any way?