Http://www.php100.com/html/program/nginx/2013/0905/5525.htmlLoad balancing is our big traffic site to do a thing, let me introduce you to the Nginx server load Balancing configuration method, I hope to have the necessary students help OH.Load BalancingLet's start with a quick look at what is load balancing, which is interpreted literally to explain the average load
NAT type of Load Balancer cluster LVS under Linux1. The cluster type is divided into 3 types:Lb:load balancing, load balancingHa:high Availability , High availabilityHp:high performance, high performanceThe 2.LB load Balancer four layer LVS type is divided into the followin
main; sendfile on; # tcp_nopush on; # keepalive_timeout 65; # gzip compression setting gzip on; # enable gzip gzip_mi N_length 1 k; # minimum compressed file size gzip_buffers 4 16 k; # compressed buffer # http protocol version (1.0/1.1), default 1.1, if the frontend is squid2.5, use 1.0 gzip_http_version 1.1; # gzip compression ratio. the minimum compression ratio is the fastest, and the maximum compression ratio is 9, but the processing speed is th
I.DemandNginx as a load balancer server, the user requests to reach nginxFirst, and then by Nginx According to the load configuration to forward the request to Tomcat server. Nginx Load Balancer server:192.168.101.3TOMCAT1 server:192.168.101.5TOMCAT2 server:192.168.101.6Ii.
Let's start with a quick look at what is load balancing, which is interpreted literally to explain the average load sharing of n servers, not because a server is under-loaded and idle on a single server. Then the premise of load balancing is to have more than one server to achieve, that is, more than two units can be.Test environmentBecause there is no server, th
Build mysql server load balancer and high-availability environment bitsCN.com
Build a mysql server load balancer and high-availability environment
Abstract: rhel5.8, mysql, keepalived, and haproxy are used to build a cluster with high availability and load balancing. mysql
health checkBackend app # define backendBalance roundrobin # Scheduling Method TrainingServer app1 127.0.0.1: 5001 check# Backup is set as a backup server. Other servers in the server Load balancer scenario cannot be used to enable this server;# Check: Start the health check for this server. You can use other parameters to perform more precise settings, such:Che
QoS function, the router provides different levels of priority processing capabilities for data exchange for specific business applications. 3. Use layer-4 switching technology to achieve server load balancingThe following design comes from the practical application of the network center of a Network Education College in a university. The layer-4 switch of Alteon provides Server
information:[Root @ localhost ipvsadm-1.24] # ipvsadm-vIpvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.0)
The compilation and installation are successful!
In addition, note the keepalived (VRRP) virtual routing redundancy protocol in Linux. keepalived adopts the VRRP mechanism, which will involve the router (switch) connected to the Server Load balancer server)VRRP virtualizes two or more router
Environment topology650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/B3/wKiom1WC-dzR6QWUAAH2zGcZxyY458.jpg "/>Environment Description:
IP Address
Function description
Nginx or httpd
172.16.4.100
Proxy server, which distributes user requests to the back-end Tomcat server for reverse proxy and load balancing
Tomcat-01
172.16.4.101
The server on which the backend ac
seconds of delay when receiving the response.
Network Server Load balancer allocates incoming network communication between one or more virtual IP addresses (cluster IP addresses) assigned to the Network Server Load balancer cluster, resulting in changeable performance. Then, the host in the cluster simultaneously r
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 ConfigurationNginx upstream by default is a poll-based load
Configure apache2.2load balancing tomctomcat6cluster .txtReferences:Http://man.chinaunix.net/newsoft/ApacheMenual_CN_2.2new/mod/mod_proxy.htmlHttp://man.chinaunix.net/newsoft/ApacheMenual_CN_2.2new/mod/mod_proxy_balancer.htmlThe so-called load balancing refers to the fact that a single server cannot respond to a large number of requests within a short period of time on the server side,In this case, the server requires a mechanism to distribute request
each instance, so it is rarely used.
2. Server Load balancerServer Load balancer depends on the load information collected by Listener. During database operation, the pmon Process collects system load information and regularly updates it to Listener. If you have configured
instances on two different physical hosts.
Use case: Make sure that each member in the HA group is configured on a different virtual Machine Manager (physical host).
Set up
Let's pause for a moment and take a look at the symbols and conventions used in this article, as well as some considerations for setting up the environment.
Commands executed as root on the system are prefixed with root@host#.
Use
, it will still be accessed by polling. Therefore, it will be opened for a while and cannot be opened;Analog: rs2 stops nginx:/etc/init. d/nginx stopIf you use curl for testing, the request will still be sent to rs2, but you have already indicated that you cannot connect to the host;[Root @ localhost ~] # Curl 192.168.11.110Rs1rs1rs1[Root @ localhost ~] # Curl 192.168.11.110Rs1rs1rs1[Root @ localhost ~] # Curl 192.168.11.110Curl: (7) couldn't connect
server fails, it is removed from the server group. The layer-5 mechanism is to check whether a server application runs properly according to user settings. If the application is abnormal, remove it from the server group. 3,2.3 practical functionsKeepalived + lvs is mainly used for RealServer health check and failover implementation between the MASTER and BACKUP of the Server Load balancer device.3 Solution
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.