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
/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
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
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
192.168.16.16;
# Charset koi8-r;Charset UTF-8;# Set access logs for the current virtual hostAccess_log logs/host. access. log main;# If you access/img/*,/js/*,/css/* resources, you can directly obtain the local document without passing squid# If there are many documents, this method is not recommended because the squid cache has better results.# Location ~ ^/(Img | js | css )/{# Root/data3/Html;# Expires 24 h;#}# Enable Server Load
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 load
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
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 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
In "high concurrency, massive data, distributed, nosql, cloud computing ...... I believe many of my friends have heard of and even often talked about "clusters and Server Load balancer". But not all of them have the opportunity to really come into use these technologies, not everyone really understands these technical terms. The following is a brief explanation.
Cluster)
A cluster is a loosely coupled mult
bindings on the RS side, do not set 0 even if the VIP bindings are stoppedif [${#VIP [@]}-le 1];thenecho "0" >/proc/sys/net/ipv4/config/lo/arp_ignoreecho "0" >/proc/sys/net/ipv4/config/lo/arp_announceecho "0" >/proc/sys/net/ipv4/config/all/arp_ignoreecho "0" >/proc/sys/net/ipv4/config/all/arp_announceFi
Inspection of the service provided by the RS node itself
Auxiliary exclusion Tool Tcpdump Ping
Load balancing and reverse proxy clusters
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 external
HAProxy for Server Load balancer
HAProxy provides high availability, Server Load balancer, and TCP and HTTP application-based proxy. It supports Virtual Hosts and is a free, fast, and reliable solution. HAProxy is especially suitable for websites with extremely high loads, which usually require session persistence or l
This article tries to explain the operation steps and simple configuration of using keepalived + Nginx + Tomcat to build a high-availability load balancing environment in Ubuntu Server environment, which does not involve performance tuning. Let's talk about their respective roles:
tomcat– Application Server
nginx– reverse proxy server, as a load balancer
I. LVS principles
1. The full name of LVS is Linux Virtual Server, that is, Linux Virtual Server. It is an open-source project of Dr. Zhang Wenyu from our country. In linux memory 2.6, it has become a part of the kernel. in earlier versions, the kernel needs to be re-compiled ., LVS is mainly used for multi-server load balancing. It works at the network layer to implement high-performance and high-availabil
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.