LVS management system function development 2

Source: Internet
Author: User

This week, we mainly conducted monitoring and optimized LB release (supporting parallel execution ). These two practical functions are mainly based on the following considerations:

1. supports parallel execution. Previously, the reload execution methods were all executed in parallel. That is, one click of the reload button immediately reloads all lb. However, in the actual test process, we found that if there is a business online, and the heavy load lb (mainly quagga) will cause the network to fail, because after the heavy load of quagga, OSPF needs to be re-converged to establish a neighbor relationship between each other. According to our observation, it will last about 60 seconds. Therefore, in this development, support for serial execution is added, that is, one lb is reloaded and 60 s is paused. At the same time, the original parallel overload function is also retained. For new businesses, it is much faster to execute the reload function in parallel without having to ensure that the business is not offline. (About 5, 6 s can be done ).

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4B/37/wKiom1QowCLTBOfGAAGE3GMVy1s154.jpg "Title =" clipboard.png "alt =" wkiom1qowcltbofgaage3gmvy1s154.jpg "/>


2. Alarm. In fact, after we access this LVS management system, we hope to use this system as a unified management portal without human intervention, that is, we want all new and modified configurations to be done by the management system, instead of Manually changing the configuration on the system (because other systems want to call interfaces from our system, precisely know the machines on which the VIP is bound). Therefore, this monitoring system is developed for configuration file changes. Its main working principle is to issue a monitoring script while releasing the LB configuration, and compare the keepalived with crontab once every 10 minutes. conf and the latest keepalived. check whether the conf files are consistent. If the conf files are inconsistent, report the files to the LVS management system and send alerts by SMS or email. In addition, if the configuration is modified, you can see the modified prompt on the system, that is, the modification time. This function will be gradually improved during later permission control, including recording operation logs and recording operators.


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4B/3C/wKioL1QozefAOq3RAAD8e7UfUHQ140.jpg "Title =" yy 40929110827.jpg "alt =" wkiol1qozefaoq3raad8e7ufuhq140.jpg "/>


Email Alert

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4B/36/wKiom1QouTWz61C9AAGHhuPXMRs267.jpg "Title =" clipboard.png "alt =" wkiom1qoutwz61c9aaghhupxmrs267.jpg "/>


SMS alerts

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4A/ED/wKioL1QnaE_DjdNAAAHeUvdrz88657.jpg "style =" float: none; "Title =" Screenshot_2014-09-26-10-36-00.png "alt =" wkiol1qnae_djdna aaheuvdrz88657.jpg "/>


This article is from the "pmghong" blog, please be sure to keep this source http://pmghong.blog.51cto.com/3221425/1559299

LVS management system function development 2

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.