Millions operations Experience One: MongoDB and Redis data cannot be placed on the same server

Source: Internet
Author: User
Tags redis server

At the outset, to save the server, MongoDB and Redis are placed on a server. Every peak of the website special card, also often appear 502. For a long time to find the reason, found that hard disk writing data is very large, IOPS is also very high, troubleshooting a number of reasons have not been found. Then carefully study the monitoring, found that the operation of the hard disk is very regular, every few minutes there is a frequent write hard disk, Lenovo to the Redis synchronous data to the hard disk interval is a few minutes, so began to suspect that Redis caused. So added a server, put Redis alone there, found that the site instantly, 502 problems no longer appear, it is a painful experience ah. As for the scenario of placing MongoDB and Redis on the same server with different hard drives, I have not tested it, and I think it should also have an impact on MongoDB, because Redis synchronizes data to the hard disk when it is more CPU-intensive. Redis server, is a quad-core CPU, when synchronizing data to the hard disk, CPU utilization of up to 60%, perhaps also with hard disk write performance is related to it, Redis very eat memory, very occupy hard disk IO resources.

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.