mongodb 1个分片的磁盘满了,会自动将插入操作引导到第2个分片上吗?
PHPz
PHPz 2017-04-26 09:01:34
0
3
874

2个分片,发现插入操作的目标多数是分片1,导致分片1的磁盘马上就满了

如果满了,会自动将后来的插入操作引导到分片2吗?还是报错、溢出?

PHPz
PHPz

学习是最好的投资!

reply all(3)
仅有的幸福

After sharding, the data is inserted into shard 1. Explain that there is a problem with sharding

sh.status() Check it

过去多啦不再A梦

If the shard key is not established correctly, the sharded data will be uneven
But it’s not absolutely uniform

phpcn_u1582

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template