"MongoDB" in the Windows Platform MongoDB Shard cluster (iv)

Source: Internet
Author: User

Objective:

This weekend but learned a day, a little do not want to study, just finished the first two post, probably after one hours, I said in my heart, if just wrote that two blog reading over 80 I have this blog, if but, tonight will no longer study. Just a look, an article exactly 80, another is 85. So thank you for the power of the user. Then this blog continues to share with you.


My purpose in this blog is to tell you what you are reading, the benefits of a shard cluster. The front has been used three to tell the Shard cluster, but may have some small partners listening confused. It is not yet known what the benefits of a shard cluster are. So in this blog I intend to use the present framework to illustrate the benefits of the Shard cluster;

One, massive data distribution storage.

I have just inserted 9,999 data on port 4000. You know we just defined two shards, shard-a, and Shard-b. Two shards. This allows two shards to store 9,999 of data together. and are separate.



If the volume of data is larger, you can set up the shards on different servers, each of which stores a certain amount of data, thus achieving the overall storage.

Second, the use of replication within the Shard we log on to Port 3000 or port 30100, and you can see that both shard-a and shard-b are replica sets made up of three machines. where 3000 and 3001,30100 and 30101 servers implement data backup. The data they hold is exactly the same, and any one of the two servers fails and the other one automatically replaces it. Become the primary database.





If you log in to 30100, the query results are similar.















"MongoDB" in the Windows Platform MongoDB Shard cluster (iv)

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.