R2D2
R2D2

Reputation: 10737

mongodb shard if I split the shard in 10x smaller

I have 1x mongodb shard 4TB in single server(512GB RAM) , if I split the shard in 10x shards/partitions in the same server , will the performance will be better?

Upvotes: 0

Views: 34

Answers (1)

Thilo
Thilo

Reputation: 262734

No. Sharding is to give the database more resources (CPU, disk, RAM, bandwidth) than you could fit into a single machine. Spreading the same resources over multiple machines won't help (and creating ten shards on the same machine even less so). You'd just be adding overhead without any benefits. If you end up with ten times the resources in total, then yes, that would help.

Upvotes: 4

Related Questions