MongoDB several issues to be aware of

Source: Internet
Author: User
1. Moongo db will try to compare all the indexes and hot data into memory to get a better query speed, while MongoDB writes, it is written in memory, and then periodically synchronized to disk, so that can achieve the high performance of sequential writing, So MongoDB is a memory-eating thing; it is best to deploy MongoDB on a separate server; You can limit the size of the memory with Ulimit; 2. Because MongoDB takes full advantage of the memory features. If your index and the size of the hot data is more than the size of the memory, then the performance of the reading is not very good, because of the good frequency of memory paging (there may be a change of index may also have the possibility of exchanging data) operation; 3. Mongostat can be used to view the indicators of MONGO; 4. The amount of data to a machine can not withstand, causing performance problems when the solution: (1) According to their own business regularly delete data, (2) do Shard Sharding, (3) Improve memory, (4) hard disk to do SSD, the actual production environment, replaced by SSD better;

MongoDB several issues to be aware of

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.