In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what is HAProxy load balancing". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what HAProxy load balancing is.
Like LVS, HAProxy is a load balancing software; in terms of efficiency, HAProxy has a better load balancing speed than Nginx, and it is also better than Nginx in concurrent processing. At the same time, it can supplement some shortcomings of Nginx, such as supporting the maintenance of Session and the boot of Cookie; at the same time, it can detect the status of the back-end server by getting the specified url.
The HAProxy document shared today consists of 6 chapters and 51 pages. The introduction of Web architecture, HAProxy scheduling algorithm, static and dynamic separation and client source IP transparent transmission, ACL use and message modification, server dynamic offline and so on are explained in detail. I believe that after reading the HAProxy will have a more in-depth understanding!
Catalogue
Due to too much content, only part of the content is shown here with screenshots. For a detailed and complete version of the document, please see the end of the article.
Chapter 1 introduction to Web Architecture
Web service architecture design-Haproxy four-tier reverse load:
1. Using HAProxy as a reverse proxy to achieve four-tier load balancing
two。 Configurable multiple scheduling algorithms
3. Support backend server status monitoring
4. Save public network IP
5. Hide internal server
Web architecture
Chapter II introduction to load balancing
Load balancing (Load Balance, referred to as LB) is a highly available reverse proxy technology implemented by services or hardware devices. Load balancing shares specific services (web services, network traffic, etc.) to one or more back-end specific servers or devices, thus improving the concurrent processing capacity of the company's business, ensuring the high availability of the business, and facilitating the horizontal dynamic expansion of the business in the later stage.
HAProxy introduction
Chapter III HAProxy installation and basic configuration
The configuration file haproxy.cfg of HAProxy consists of two parts: global (global configuration segment) and proxies (agent configuration segment).
Proxies configuration details
Chapter 4 HAProxy scheduling algorithm
HAProxy indicates the scheduling algorithm for the back-end server through the fixed parameter balance, which can be configured in the listen or backend option.
Scheduling algorithm directory
Scheduling algorithm
HAProxy scheduling algorithms are divided into static and dynamic scheduling algorithms, but some algorithms can be converted between static and dynamic algorithms according to parameters.
Scheduling algorithm
IP transparent transmission
The real IP address of the client needs to be recorded in the web server, which is used for access statistics, security protection, behavior analysis, regional ranking and other scenarios.
IP transparent transmission
Chapter V Advanced functions and configurations
This chapter mainly introduces the advanced configuration and practical cases of HAProxy.
Advanced features and configuration directory
Message modification
In http mode, the request message and response message of the client are modified according to the actual requirements, the delete fields are added in the request message through reqadd and reqdel, and the fields are added and deleted in the response message through rspadd and rspidel.
Message modification
ACL
Access control list (ACL,Access ControlLists) is an access control technology based on packet filtering, which can filter packets transmitted through the server according to set conditions (condition matching), that is, match and filter received messages. Match and perform further operations based on the source file, source port, destination address, destination port, request method, URL, file suffix and other information in the header of the request message, such as allowing it to pass or discard.
ACL
HAProxy four-layer load
Layer-4 load balancer determines which traffic needs to be load-balanced by issuing layer-3 IP addresses (VIP) and then adding layer-4 port numbers.
Four-layer load
Thank you for your reading. the above is the content of "what is HAProxy load balancer". After the study of this article, I believe you have a deeper understanding of what HAProxy load balancer is, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 240
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.