Lvs+keepalived+nginx enables dual-machine hot standby load balancing, which is a highly available load balancing deployment commonly used in the enterprise. Its network topology is as follows:
, using lvs+keepalived to load the nginx and achieve high availability, Nginx will load the Tomcat Web service (Business service system). Each layer of nodes can be scaled horizontally.
We've already said in the previous section that lvs+keepalived achieves high availability load, this section mainly utilizes Nginx load to expand the whole architecture to achieve better high availability, high load, high concurrency. About the load configuration of Nginx can look at the http://www.cnblogs.com/skyblue/archive/2013/05/14/3077334.html, here is not tested.
Reference:
Lvs+keepalived+nginx+tomcat Deployment implementation:http://lovelace.blog.51cto.com/1028430/1550188
Keepalived+lvs Dual Hot-standby realserver Web site load balancing:http://wenku.baidu.com/view/444d41ed0975f46527d3e1df.html
The above describes the Lvs+keepalived+nginx to realize the dual-machine hot standby load balancing, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.