Design and Implementation of High Availability Website Based on Heartbeat+Nginx
In order to solve the load balancing problem of high availability websites for enterprises,Heartbeat was adopted as a high availability component to monitor the heartbeat of the LVS(DR mode)load balancing cluster and solve the problem of single point of failure in the cluster.Using Nginx as the reverse proxy server to load balance the backend website,LVS load scheduler is used to load schedule Nginx cluster for linear expansion,further improving the website's load capacity and achieving website load balancing and high availability.The number of accesses and packet loss rate of Heartbeat+Nginx load balancing architecture system is calculated by generating connection access requests of different orders of magnitude through cloud clients,and the feasibility of the system is verified.The results show that the Heartbeat+Nginx load balancing architecture has a packet loss rate of zero when there are 5000-8000 high concurrency accesses,meeting the needs of users for high performance,high concurrency,high reliability and high availability of web servers.