A collection of issues encountered in MongoDB shards

Source: Internet
Author: User

Question One

Shard configuration is completely correct, the MONGOs service can start normally, the choice of tablet keys is also reasonable (previously tested locally), but the data is always concentrated on a shard?

The final resolution procedure, after using MONGO login on a shard server, prompts the following error:

650) this.width=650; "Title=" 94ns[$ (9%5hvt0zck0ib%9f.jpg "alt=" wkiol1q0_cjti5igaaev51t-qui127.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m02/4b/e8/wkiol1q0_cjti5igaaev51t-qui127.jpg "/>

Follow the prompts to change the kernel parameters to 0 and execute the following command:

echo 0 >/proc/sys/vm/zone_reclaim_mode

Then the service mongod Restart restarts the Mongod services, when the data is automatically balanced into each shard, 650) this.width=650; "title=" 1.png "src=" http://s3.51cto.com/ Wyfs02/m01/4b/e6/wkiom1q0_yvwvuglaalphy6g8bi419.jpg "alt=" Wkiom1q0_yvwvuglaalphy6g8bi419.jpg "/>

A collection of issues encountered in MongoDB shards

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.