- replica sets scales reads
- sharding scales read and writes
- backup
- primary and secondary members
- oplog requires a replica set
- only one
- multiple
- copies-, and repeats the primary oplog after a set
delay
- priority
0
will not become a primary - use "hidden" to avoid interference. Suitable for analytics and offline reads. Rquired to be priority 0.
- only required if even number-, or only one secondary
- Cluster of shards. Each shard is a
mongod
- Each shard should be a replica set
- Requires: shardKey, router
mongos
, config server
- try replica sets on DO
- try sharded cluster on DO
- checkout datadog for monitoring
- read tal the oplog