2个分片,发现插入操作的目标多数是分片1,导致分片1的磁盘马上就满了
如果满了,会自动将后来的插入操作引导到分片2吗?还是报错、溢出?
仅有的幸福2017-04-26 09:03:34
After sharding, the data is inserted into shard 1. Explain that there is a problem with sharding
sh.status() Check it
过去多啦不再A梦2017-04-26 09:03:34
If the shard key is not established correctly, the sharded data will be uneven
But it’s not absolutely uniform
phpcn_u15822017-04-26 09:03:34
I have tested on the server. Since a mongod node is running, a journal file needs to be maintained for database operation replay. This journal file needs to occupy a certain amount of disk space, so when the disk space is insufficient, the mongod node will exit. My server originally had 4 mongod nodes and a configsvr running on it. However, after the disk became full, only 3 mongod nodes were left.