Server Load balancer is a technology that implements Load Balancing through an algorithm. In layman's terms, requests are uniformly distributed to devices,Server Load balancer will receive all requests in a unified manner, and then distribute these requests to the server
Objective First to the big guys for a year, I wish you all: the New Year health Kang, safe! The formation of this article refers to a lot of people's blogs, the most should be the green years of the brother of this blog, we can first go to see, familiar with some content, because this article is direct practice, some theoretical knowledge needs to be supplemented by their own.This article is in my previous environment LVS + keepalived + Nginx + Tomcat to achieve master-slave hot standby +
Introduction to load Balancing clusters
Main open source software LVs, keepalived, Haproxy, Nginx, etc.
The LVS belong to 4 layer (network OSI 7 layer model), Nginx belongs to 7 layer, Haproxy can be considered as 4 layer, can also be used as 7 layer
The Keepalived load balancing function is actually the LVS
LVS This 4-tier
cookie-based session persistence, and session persistence based on the SIP ID and cache device. However, simple session persistence is commonly used, HTTP header session persistence, HTTP Cookie Session persistence, and I-rules-based session persistence 。
◆ Simple session persistence
Simple session persistence is also called source address-based session persistence, server Load balancer performs
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 serverfarm as the Server
The Lvs NAT mode is the full name of virtual server via network address translation (Vs/nat), which rewrites the destination address of the request message via the Net-addressing translation, and assigns the request to the backend's real server according to the scheduled scheduling algorithm. When the response message of the real server passes through the scheduler, the source address of the message is rewritten and returned to the client to complete
I. Introduction of LVSLVS is a short name for Linux virtual server, the Linux web, is a free software project initiated by Dr. Zhangwensong and is now part of the Linux standard kernel. LVS is a TCP/IP-based load balancing technology that has high forwarding efficiency and the ability to process millions of concurrent connection requests.The IP load balancing technology of LVS is realized by Ipvs module. Ip
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 the user@host# sudo as root on the system to prefix with the sudo execution command.
A co
Preface:
The company has developed a website. The estimated maximum number of online users is 30 thousand, and the maximum number of concurrent users is 100. Whether or not the developed website can withstand this pressure and how to ensure that the load of the website is no problem, after research, it is decided as follows:
(1) Server Load balancer and cluster t
distribution request, and the response packet is returned directly to the customer by RS, reducing the load balancer's massive data flow, and the load balancer is no longer a system bottleneckDisadvantage: Each machine needs a public IP, * Tunnel-tun: principle: (one IP packet is encapsulated in another IP packet, so it can cross the
Local DNS;
8. The Local DNS returns the www.qq.com resolution record to the user.
Local DNS is generally provided by network operators (such as China Telecom and China Netcom.
The cache DNS is between the client (this is a relative concept) and the local DNS, and uses the cache function of the DNS server software and the close-up characteristics between the cache DNS and the client to accelerate domain name resolution.
You can also perform Domain Nam
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
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
Load Balancing is built on the existing network structure, it provides a cheap, effective, and transparent method to expand the bandwidth of network devices and servers, increase throughput, enhance network data processing capabilities, and improve network flexibility and av
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
/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
Linux Cluster Server Load balancer lab notes I,Network Topology: II,Virtual Machine Configuration Create three virtual machines on one physical computer.WindowsOperating System, Configuration192.168.1.0The IP address of the CIDR block.Centos5.4. One Server Load balancer
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
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
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.