balancemember are members in the cluster. Port 8009 is the AJP port name of Tomcat.
The above amendment: This was neglected during the test yesterday and was discovered only during the test at the company today. You must note that route = worker1 and route = worker2 in the balancermember line cannot be added. Once added, distributed access will not be performed through the Apache designation, therefore, you must remove it here. Otherwise, operations will only be performed in a tomcat container.
Build LVS Load Balancer Pre-set on Linux,centos7
Prepare five virtual machines
Four sets of Centos7
One to do scheduling one to do NFS cache
Two do Wed clusters
One windows7 begins to be configured individually
Configure Server for NFS (CENTOS7 is used to download the source code package online, but in order to do the experimen
] ~]# Curl 192.168.11.110rs2rs2rs2Change the polling algorithm to WRR, the weight is 2, and then execute the file, the error hint file already exists , because the /usr/local/sbin/lvs_dr.sh script file is already up eth1:0, So need to add in the script: Ifconfig eth1:0 down, then will not error;$IPV-A-t $VIP: 80-s wrr$ipv-a-T $vip: 80-r $rs 1:80-g-W 2$ipv-a-t $vip: 80-r $rs 2:80-g-W 1[[email protected] ~]# BASH/USR/LOCAL/SBIN/LVS_DR.SHSIOCADDRT: File already existsIf one of the RS is hung, it wi
I. Main Server Load balancer Technologies
1. Cisco Ethernet channel network balancing)
2. WindowsNLB Technology
3. LinuxLVS Technology
4. Server Load balancer (such as F5)
Ii. Redundancy Technology
1. CsicoHSRP Hot Backup route
2. Windows Cluster Technology
3. LinuxHA cluster technology
4. IBMAIX Cluster
The
In Linux Streaming Server Load balancer, Layer7 identifies data streams (Connection Tracking ).1. the nf_conntrack that supports Layer7 does not really need to be destroyed. After that, you will feel that you need to change "data streams based on quintuple" to "data streams with fixed offsets based on application layer protocols, the sooner the better! Therefore,
Identification of Layer7 data streams (Connection Tracking) in Linux Streaming Server Load balancer
1. nf_conntrack supporting Layer7 is really unnecessary
After the fire, you will feel the need to quickly change "data streams based on quintuple" to "data streams with fixed offset based on the application layer protocol". The sooner the better! Therefore, this pe
certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL).If you‘d like to turn off curl‘s verification of the certificate, use the -k (or --insecure) option.Explanation: This issue was flagged as untrusted because the certificate was issued by us, but was actually successfully configured.7. Access using the browserFirst in the Windows system to add the hosts to resolve the aming.com, if you can n
Linux Server Load balancer TOP Command-display kernel chip Cache Information
The Linux kernel needs to allocate memory for temporary objects such as tasks, device structures, and nodes. The cache distributor manages the cache of these types of objects. The cache distributor is deployed in the modern
.[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the
192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the 192.168.60.200 80 service, LVS assigns the request to
Add the following to the Nginx configuration file "/etc/nginx/nginx.conf" http node:such as domain name: admin.wxh.com load to two servershttp{//... Omit this line above other configuration content upstreamadmin.wxh.com{ server10.0.0.11:9000weight=1;server 10.0.0.11:8000weight=3;}server{ listen80; server_nameadmin.wxh.com;location/ {proxy_pass http://admin.mewxh.com; proxy_set_headerHost $host; proxy_set_headerx-real-ip $remote _addr; proxy_set_heade
Http://tcsrvs;}Use NGINX-T to check the configuration file for errors.[Email protected] nginx]# nginx-tNginx:the configuration file/etc/nginx/nginx.conf syntax is OKNginx:configuration file/etc/nginx/nginx.conf Test is successful[Email protected] nginx]#Then the browser verification: a refresh to jump to the other two up, indicating that the test was successful.650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A3/3B/wKioL1mj7c_Tb7AeAABDYdw0gtE085.jpg-wh_500x0-wm_ 3-wmp_4-s_1794468385.
/arp_ignoreecho 0 >/proc/sys/net/ipv4/conf/lo/arp_announceecho 0 >/proc/sys/net/ipv4/conf/all/arp_ignoreecho 0 >/proc/sys/net/ipv4/conf/all/arp_announce;;Status# Status of Lvs-dr Real server.Islothere= '/sbin/ifconfig lo:0 | grep $VIP 'Isrothere= ' Netstat-rn | grep "lo:0" | grep $VIP 'if [! "$islothere"-O! "Isrothere"];then# either the route or the lo:0 device# not found.echo "LVS-DR Real server Stopped."Elseecho "LVS-DR Real server Running."Fi;;*)# Invalid entry.echo "$0:usage: $ {start|status
, which is the VIP address above, is shared by the director server and all real servers,If there is an ARP request VIP address, the Director server responds with all real servers, and the problem occurs.Therefore, the real server needs to be prevented from responding to ARP requests.Third, configure the Tomcat service on the real server, slightly. To build an HTML file in 192.18.8.5, the contents are:This is the test pageFrom server 192.168.8.5To build an HTML file in 192.18.8.6, the contents ar
The previous article on the introduction of load Balancer LVS has explained the principle of lvs-dr, this article mainly introduces its implementation process in MySQL application:Test environment: 4 virtual machines are CENTOS6 operating systems, using the system's own MySQL package installation test:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/4E/wKioL1YY3QbTEdf8AAFbNDovCbk650.jpg "title=
/wwwroot/lvlinux.com; ssl on; ssl_certificate lvlinux.crt; ssl_certificate_key lvlinux.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;}-T -S reload//If error unknown directive "SSL", need to recompile nginx, plus--with-http_ssl_moduleMkdir/data/wwwroot/lvlinux.comecho "SSL Test" >/data/wwwroot/lvlinux.com/index.htmlEdit hosts, add 127.0.0.1 lvlinux.comCurl https://lvlinux.com/Discover that the certification authority is marked as not trusted by the user, of course, the certificate we issue
Nginx Load Balancer 404 error handling methodUse Nginx to achieve load balancing, but the data of a group of servers is not implemented synchronization, the master server has data to be synchronized to other servers for a period of time upstream image.stream.com {server 192.168.1.25:8088;server 192.168.1.24:8088;server 192.168.1.23:8088;} When a user accesses a p
:229406(224.0KiB) TX Bytes:229406(224.0KiB) [Email protected] keepalived]# Ipvsadm-lnip Virtual Server version1.2.1(size=4096) Prot localaddress:port Scheduler Flags-remoteaddress:port Forward Weight activeconn inactconntcp192.168.103.100: theWRR Persistent --192.168.103.101: theRoute1 0 0-192.168.103.105: theRoute1 0 0If the NODE3 does not turn off the firewall, the ETH0:1 network card is also enabled, so be careful to shut down the firewall.Linux under KEEPALIVED+LV
Failure phenomena:When the client accesses the VIP, there is no access, and the view log information is displayed as follows:Kernel:IPVS:RR:no Destination AvailableKernel:IPVS:RR:no Destination AvailableKernel:IPVS:RR:no Destination Available。。。。。。There are about two reasons for online inquiry1, Ipvs RR module is not installed, after the Lsmod |grep RR display has been installed, excluded.2, keepalived all the server port service did not start, after Ps-aux and lsof have been started, this reaso
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.