We have 3 shard cluster, The cluster shard1 and shard2 have the highest hardware specification. but the shard3 has lower hardware specification. we have collection called users and has field cookies.
Is there any possibility to config to shard based on whether or not the field for cookie exists ?
if it exists, the document should be on shard1 and shard2, and if it does not exist, the document should be on shard3.
The goal is for cost optimization our cluster.
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Mongodb Sharding for High Transaction and High Volume Application | 1 | 558 | May 2024 |
Can’t configure shards | 1 | 442 | 23d |
Best sharding key for GridFS collection | 1 | 411 | Nov 2024 |
Mongorestore fails with StaleConfig error on sharded cluster | 0 | 91 | Sep 2024 |
MongoDb4.2 data balancing across shard clusters | 1 | 42 | Oct 2024 |