[Step 1] Load Balancing EasySLB Activation Management Process

Published: 2015-01-22


Advantages of load balancing NginxSLB over EasySLB: 

               1. Supports independent SSL deployment, one-click deployment in the backend, and no configuration is required on the web server

               2. Supports independent multi-site deployment; multiple load balancing sites can be added independently in the backend

               3. Backend web servers do not need separate settings, and there is no need to set the origin gateway address on the web server; web servers are not required to be in the same data center (same data center recommended)

               4. Supports multiple load balancing groups; different backend load balancing groups can be specified for different domain names to achieve diversified functions

               5. Based on nginx extended configuration, it is more flexible; no remote load server is required; graphical operations in the backend make it easier for beginners to configure


Our company's load balancing architecture includes two types: EasySLB architecture and nginxSLB architecture, for nginxSLB mode please refer to the tutorial NginxSLB load balancing activation and management process    .

The following is the tutorial description for the EasySLB architecture


Load balancing EasySLB architecture: One scheduler at the frontend, three or more web servers at the backend, and one file server (the file server stores web files and databases). Note: All servers must be opened in the same data center and the same cluster.

Recommended server configuration: 1. Frontend scheduler (one): 4-core CPU, 4G memory, 20M bandwidth, 50G hard disk. (All bandwidth used by load balancing is on the scheduler, so the scheduler needs sufficient bandwidth. Other servers only need to ensure at least 1M bandwidth, and it can be increased at any time later according to usage.)

                2. Web servers (three or more): 4-core CPU, 4G memory, 1M bandwidth (use the internal network IP for data exchange, so 1M bandwidth is sufficient), 100G hard disk

                3. File server (one): 4-core CPU, 4G memory, 1M bandwidth (use the internal network IP for data exchange, so 1M bandwidth is sufficient), 100G hard disk (SSD; the hard disk size depends on the data)

Operating principle of load balancing EasySLB: Our company's load balancing EasySLB uses NAT mode. The domain name resolves to the scheduler IP. When a user enters the domain name to visit, the request first reaches the scheduler > then the scheduler distributes it to the backend web servers for processing > the web servers call the web files and database content on the file server > after processing, the data is fed back to the user through the scheduler. Therefore, all bandwidth is on the scheduler, and communication from the scheduler to the web servers and from the web servers to the file server all uses the internal network.


  1. First, these servers need to be activated. Web servers and file servers can be activated normally according to requirements at http://www.west.cn/services/CloudHost/. When activating the frontend scheduler, you need to select the "Load balancing EasySLB" template. Please see the screenshot.

    1.png

     



Note: After these servers are activated, they need to be added to the virtual switch and the internal network needs to be configured,Virtual switch VPC configuration instructions (Elastic Cloud internal network communication)  



2. Log in to Management Center > Business Management > Independent IP Host Management, and view tu.jpg the server with this icon is the scheduler server. Click Management at the end to enter 2.jpg


3. After entering, the basic information is the scheduler server, and the backend servers are web processing servers. According to the prompts, add the three web servers activated earlier.tianjia.png

Use all default values. The system automatically checks the IP: port 80 status. If the status is incorrect, the system automatically stops. Also note that a web server on Windows needs to bind an empty host header to the created site so that it can be checked normally.

It is recommended to use TCP to check port 80

blob.png


blob.png

After adding, the management interface is as follows:

blob.png

Suspended status indicates that the port 80 check failed, and the system automatically stops; Active indicates that everything is normal.

Note: The file server does not need to be added to load balancing; only web servers are added here.


After the above operations are completed, users need to manually perform the following three steps:

1. Set up file sharing.

2. Create a site on the web server.

3. Set the gateway of the load balancing EasySLB backend server.

Appendix: Load balancing EasySLB FAQ


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