search

Home  >  Q&A  >  body text

mongodb 1个分片的磁盘满了,会自动将插入操作引导到第2个分片上吗?

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

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

PHPzPHPz2800 days ago878

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再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

    reply
    0
  • phpcn_u1582

    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.

    reply
    0
  • Cancelreply