首页|基于 Heartbeat+Nginx 的高可用网站的设计与实现

基于 Heartbeat+Nginx 的高可用网站的设计与实现

扫码查看
为了解决企业对于高可用网站的负载均衡问题,采用了 Heartbeat作为高可用组件,对LVS(DR模式)负载均衡集群进行心跳监测,解决集群当中出现的单点故障问题.采用Nginx作为反向代理服务器对后端网站进行负载均衡,由LVS负载调度器来负载调度Nginx集群进行线性扩展,进一步提高网站的负载能力,实现了网站的负载均衡与高可用.通过云客户端发生不同数量级连接访问请求,计算Heartbeat+Nginx负载均衡架构系统的访问数丢包率,验证系统的可行性.结果表明,Heartbeat+Nginx负载均衡架构在5000~8000个高并发访问时,丢包率为零,满足了用户对于Web服务器的高性能、高并发、高可靠性、高可用性等需求.
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.

ClusterHigh availabilityLoad balancingHeartbeatNginx

江宏

展开 >

安徽商贸职业技术学院

集群 高可用 负载均衡 Heartbeat Nginx

安徽省科研编制计划项目

2023AH052298

2024

哈尔滨师范大学自然科学学报
哈尔滨师范大学

哈尔滨师范大学自然科学学报

影响因子:0.207
ISSN:1000-5617
年,卷(期):2024.40(1)