Load Balancing EasySLB FAQ
Published: 2015-01-19
1.Q: Load Balancing EasySLB Architecture
A: General conventional architecture: one scheduler at the front end, three or more web processing servers at the back end, and one file server (the file server stores web and databases)
2.Q: Principle of EasySLB load balancing.
A: Our company uses nat mode; the following describes in detail the principle of NAT mode
NAT mode load balancing principle: a brief introduction
VS/NAT architecture diagram

Request process:
When a client accesses a network service through Virtual IP Address (the IP address of the virtual service), the request packet arrives at the scheduler. The scheduler selects one server from a group of real servers according to the connection scheduling algorithm, rewrites the destination address Virtual IP Address of the packet to the address of the selected server, rewrites the destination port of the packet to the corresponding port of the selected server, and finally sends the modified packet to the selected server. At the same time, the scheduler records this connection in the connection Hash table. When the next packet of this connection arrives, the address and port of the originally selected server can be obtained from the connection Hash table, the same rewrite operation is performed, and the packet is passed to the originally selected server.
Response process:
When a response packet from a real server passes through the scheduler, the scheduler changes the source address and source port of the packet to Virtual IP Address and the corresponding port, and then sends the packet to the user.
Summary:
From the request and response processes, it can be analyzed that LVS's NAT mode load balancing works on iso network model layer 4, not layer 7.
3. Q: How is bandwidth allocated for NAT mode load balancing?
A: web processing servers and file servers only need 1M; the scheduler needs sufficient bandwidth. If it is insufficient later, simply increase the scheduler's bandwidth.
Principle: NAT mode: the backend web servers and NFS servers, as well as the communication between the scheduler and web servers, are all internal network communication, which does not occupy external network bandwidth, so bandwidth is mainly added to the scheduler.
4. Q: How is a whitelist added?
A: Simply submit the whitelist to the scheduler IP. Other web servers and nfs servers do not need to add a whitelist
5. Q: Besides WEB services on port 80, does EasySLB load balancing support other applications? For example, are HTTPS, SMTP, etc. supported?
A: It can be used for other purposes. Because load balancing works at the network layer,it supports TCP protocol-based HTTP, HTTPS, FTP, SMTP, POP3, etc., and UDP protocol-based DNS, NTP, ICP, video and audio streaming protocols, etc.,therefore it can not only provide web service load balancing, but also provide load balancing for various common services.
6. Q: Does EasySLB load balancing support session persistence?
A: Yes, it is supported. Our load balancing scheduler by default schedules clients with the same IP address to the same backend WEB server, so there is no need to configure session persistence separately.
7. Q: Do backend servers need any special settings?
A: Normally, after backend servers are added to the cluster, the system will perform automatic settings. If automatic settings fail (for example, cloud hosts provisioned previously), you need to reconfigure the routing. For details, please refer to /faq/list.asp?unid=881
8.Q: How is the EasySLB load balancing service billed?
A: Our EasySLB load balancing service is built on an ordinary elastic cloud host, so the required cost is the fee for purchasing the elastic cloud host. Since a general scheduler has low requirements for CPU/memory/disk resources and only high requirements for bandwidth, these resources can use the minimum configuration; it is only necessary to ensure sufficient bandwidth.
Users only need to set up: 1. Set up file sharing by yourself , 2. Create a site on the web server.
Cluster system optimization reminders:
1. If the WEB server is Linux, it is recommended to increase the file descriptor limit to 655350; the default 4096 may become a bottleneck.
2. If the database system uses MYSQL, the innodb storage engine must be used, and the value of innodb_flush_log_trx_commit should be changed to 2.
