: This article describes how to configure an Nginx server load balancer instance. if you are interested in the PHP Tutorial, refer to it. [Introduction] server load balancer is a task for a large-traffic website. next I will introduce how to configure server load
Author: road ahead
Source: http://www.blogjava.net/carter0618/archive/2007/10/16/153131.htmlload balancing
A large number of links to the Server Load balancer documentation are collected here for future use.
Server Load balancer technology shenghuafen
Cluster load bal
my requirements were met by configuring URL rewrite rules. Assuming that the ARR server provides external services on port 80, after receiving the port 80 request, the server Load balancer will also forward requests to Web applications on port 8080 to process requests or Web applications on port 8080 of other services. General steps
1. Add the ARR server to serv
/data0/htdocs/www;}Restart Nginx, in the browser input a.com:8080 try to see if you can access. Results can be accessed normallySince the normal access, then we can add the main server to upstream, but the port to change, the following code:Upstream A.com {Server 192.168.5.126:80;Server 192.168.5.27:80;Server 127.0.0.1:8080;}Since the main server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigne
the main server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigned to the primary server.OkThe primary server is also able to join the service normally.finallyOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide services, but the domain name only resolve
2.41.0.1217-nov-2004 Stable GNU general public License (GPL)IPVS for Kernel 2.21.0.814-may-2001 Stable GNU general public License (GPL)LVS Load Balancing Scheme
Monitor LVs in a self-scripted way
Heartbeat+lvs+ldirectord is more complicated and difficult to control.
Configure LVS with the tool piranha provided by Redhat
Keepalived+lvs Solution (Recommended)
2.2 LVS Load Balancing
;Server 127.0.0.1:8080;}Since the main server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigned to the primary server.The primary server is also able to join the service normally.At lastOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide services, but t
server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigned to the primary server.The primary server is also able to join the service normally.At lastOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide services, but the domain name only resolves to the pr
:80;Server 127.0.0.1:8080;}Since the main server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigned to the primary server.The primary server is also able to join the service normally.At lastOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide services, bu
Introduction to load Balancing clusters
The software that realizes load Balancing cluster is: LVS, keepalived, Nginx, Haproxy and so on. The LVS belong to four layer (network OSI model), Nginx belongs to seven layer, haproxy can be considered as four layer, also can be used as seven layer.
The Keepalived load balancing function is actually the LVS
requestsDoRouting.First, assume that each request is processed by a computer on the server. If the external request load is evenly distributed to each computer node, the server load balancer will be successful.Without considering the backend technology of distributed databases, the core of server
--rate: Rate--timeout: Shows the session timeout length for TCP, Tcpfin, and UDP-C: Show current Ipvs connection statusRemove all cluster Services:-C: empty Ipvs ruleSave rule: # ipvsadm-s >/Specify Storage pathLoad restore previous rule: # Ipvsadm-r 5. The NAT type instance background of the load Balancer cluster LVS :Director Dispatch host two network cards, the exter
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
code:Upstream A.com {Server 192.168.5.126:80;Server 192.168.5.27:80;Server 127.0.0.1:8080;}Since the main server can be added here IP192.168.5.149 or 127.0.0.1 can both represent access to themselves.Restart Nginx, and then visit a.com to see if it will be assigned to the primary server.The primary server is also able to join the service normally.At lastOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not
server is also able to join the service normally.At lastOne, load balancing is not nginx unique, famous dingding Apache also have, but performance may not be as nginx.Second, more than one server to provide services, but the domain name only resolves to the primary server, and the real server IP will not be ping can be obtained, add a certain security.Third, the IP in the upstream is not necessarily the intranet, the
-machine interoperability" and so on.2. Load Balancer cluster (load Balance Cluster)LBProvides a load capacity that is proportional to the number of nodes, which is suitable for services that need to provide heavy load traffic, such as the web. The more famous of these clust
Defined:LVS is a shorthand for Linux virtual server, that is, a virtualized server cluster system.Structure:In general, the LVS cluster uses a three-tier structure, the main component of which is: A, Load Scheduler (load balancer), it is the entire cluster to the outside of the front-end machine, responsible for sending the customer's request to a set of servers
QQ group: 179242260nginx as a server Load balancer Application
The load balancing function of nginx is implemented through the upstream command. Therefore, its load balancing mechanism is relatively simple. It is a layer-7 Load Balancing implementation based on content and a
Server Load balancer
Algorithm
There are many Server Load balancer algorithms (persistent and non-persistent), including the round robin algorithm, least connection algorithm, response time algorithm, hash algorithm, and least connection error algorithm, link bandwidth algorithms. In addition, the actual se
Implementing the NAT mode of LVSThe principle and characteristics of the detailed description of the LVS load balancing one: Lvs-nat, lvs-dr mode of the principle of detailed introduction1. Experimental environmentIP Address PlanningRequest IP address of Client Access service: VIP 12.0.0.1
Server
IP
system
Director Server
DIP 192.168.10.1
CentOS7
NFS Server
192.168.10.50
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.