HAProxy
HAProxy is a well-known product all over the world. It is used by large IT companies: Avito, DevianArt, Github, Twitter and others. The product works only on Unix operating systems and is supplied free of charge.
Functionality
.
- Load Balancer. The utility redirects requests to less heavily loaded servers to increase processing speed and provide responses to requests in a timely manner.
- Monitoring. HAProxy regularly monitors all servers that are listed as alternate servers. In the event of an increase in load on one of them, requests start flowing to the others. The monitoring takes place in real time.
- Reservation. If necessary, the administrator sets rules on the web server, according to which HAProxy assigns certain clients to a dedicated server or servers.
- Addresses the rules on the web server.
- Support for TLS SNI. The plugin allows you to allocate incoming requests with HTTPS protocol, which are sent to the dedicated server, if the processing template is set.
- Support for SNI.
- Easy integration. HAProxy can be easily installed and deployed into existing clusters.
Configuration
. HAProxy is flexible in configuration. The software product contains 5 main sections for configuration.
- Global. This module is responsible for general settings of the software product, e.g. time synchronization, logging address, etc.
- Defaults. The configuration file is responsible for the settings that are used by the utility by default.
- Listen. The component contains a full description of the proxy and information about the last 2 sections.
- Frontend.
- Frontend. Defines the way in which requests are forwarded for processing, the choice depends on the type of request.
- Backend.
- Backend. Responsible for load balancing between servers, depending on the selected type of processing of incoming information.
- Backend.
.
Each of the above configuration files can be customized by the administrator for his tasks. The utility supports the function of request distribution.
As a rule, the first 3 files are subject to minimal changes or are not edited at all, and the last 2 files are completely changed under the current loads of the site.
HAProxy is a completely free product and is responsible only for certain tasks, as well as perfectly copes with HTTP traffic compression.