Read about a10 load balancer configuration guide, The latest news, videos, and discussion topics about a10 load balancer configuration guide from alibabacloud.com
This article to share the content is about Nginx and PHP installation and configuration six Nginx reverse proxy and Load Balancer Deployment Guide, has a certain reference value, the need for friends can refer to
1. Locate and open the Conf file
2. Load Balancing Configura
For Web application cluster learning, I started from tomcat5.5. Below are some of my practical operations and experiences.
Section 1 Environment
Server Load balancer
*
Operating System: Windows XP
IP Address: 192.168.1.200
Apache: apache_2.2.13-win32-x86-openssl-0.9.8k.msi
Mod_jk: mod_jk-1.2.28-httpd-2.2.3.so (for Windows)
Cluster Environment tomcat1
*
Operating System: SuSE linuxe Server 10
IP Address: 192
Recently participated in A10 load balancing equipment training and wrote basic configuration notes based on personal understanding. Cisco ACE modules have been used before, and the fundamentals are consistent.
Note: If there is an understanding error please give the point, thank you.
The notes are as follows:
A10
Haproxy configuration for Server Load balancer and haproxy configuration for Server Load balancerCommon Open-Source Software load balancers include Nginx, LVS, and Haproxy. Comparison of three major software
Nginx Server Load balancer configuration instance details, nginx Server Load balancer instance
First, let's take a brief look at what Server Load balancer is. Simply understanding what
Apache + Tomcat server Load balancer configuration and tomcat server Load balancer
Apache + Tomcat server Load balancer ensures high availability and system performance, which is achie
Real Server1
192.168.137.5
lo:0
192.168.137.100
Real Server2
192.168.137.6
lo:0
192.168.137.100
Second, the installation and configuration process of keepalivedBoth load balancer servers need to be installed, configured keepalived2.1 Installing Keepalived
$ yum-y Install keepalived
The process of adding a load complete is:Configure SLB server as the so-called real server, the backend real service hostConfigure SLB Service-group to define a service group that contains which real server hostsConfigure SLB Virtual-server, virtual server, to provide the address of the external servicePost a simple configuration for your reference:1, configure the server, of course, in the Configure modeSL
one file. The benefits are simple, possibly as long as there are few configurations. However, as the number of servers increases, it becomes very difficult to monitor log files on each server.
2. Logging to a share this method is still available for each server, but they are stored on a central file server through a sharing mechanism, which makes monitoring logs easier. The problem with this scenario is that if the file server is unavailable, a simple log cannot be written to the problem that e
IP
Proxy_set_header Host $host;
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
#禁用缓存
Proxy_buffering off;
#设置反向代理的地址
Proxy_pass http://192.168.1.1;
}
The proxy address is modified according to the actual situation.
4. Load Balancing Configuration
Nginx upstream by default is a poll-based load balancing, in
In the past, running a large web application meant running a large web server. Because your application attracts a large number of users, you will have to add more memory and processors to your server. Today, the 'large server' mode has passed and replaced it with "> In the past, running a large web application meant running a large web server. Because your application attracts a large number of users, you will have to add more memory and processors to your server.
Today, the 'large server' mode
Today, the 'large Server' model has passed, replacing it with a large number of small servers, using a variety of load balancing technologies. This is a more feasible way to minimize hardware costs.
The 'more servers' mode has more advantages than the 'large Server' mode in the past. It is reflected in two aspects:
1. If the server goes down, the Server Load balan
IPProxy_set_header Host $host;Proxy_set_header X-real-ip $remote _addr;Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;#禁用缓存Proxy_buffering off;#设置反向代理的地址Proxy_pass http://192.168.1.1;}The proxy address is modified according to the actual situation.4. Load Balancing configurationNginx upstream by default is a poll-based load balancing, in this way, each request in chronological order to a diff
In the past, running a large web application meant running a large web server. Because your application attracts a large number of users, you will have to add more memory and processors to your server. Today, the 'large server' model has passed, replacing it with a large number of small servers, using a variety of load balancing technologies. This is a more feasible way to minimize hardware costs.
The 'more servers' mode has more advantages than the
address: Http://client.com/consumer/dept/list. This time with the Ribbon and Eureka after the integration of the user no longer pay attention to the specific Rest service address and port number, all the information is obtained through Eureka complete.2.2. Ribbon Load BalancingThe above code shows that there is a load-balanced annotation in the Ribbon: @LoadBalanced, it means that
2.3 wget and curlWget and curl are two common file transfer tool software based on command line. These two tools are similar but different. Both tools can download content through FTP, HTTP, or HTTPS. With these tools, we can simulate the client to send various TCP requests to Server Load balancer, to study how Server Load ba
Next, this section describes the network architecture and configuration process of the RADWARE project. Radware works in active/standby mode. The corresponding networking methods are divided into single-arm networking, dual-arm networking, and triangular transmission.
I. Single-arm networkingThe following networking is called single-arm networking, which is a widely used networking method. This networking mode enables complete master-slave switchover.
configuration.After changing the configuration, we need to restart the Nginx server, or reload (only let it reload the configuration), so that the changes take effect:Service Nginx ReloadBelow we create a test code that tests whether the access is normal "Note: Must be created in the machine where the PHP-FPM is located":cd/opt/wwwvi index. phpWrite the following code:PHP Echo ' Hello! I am server-b ';Then
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.