before the cluster is establishedSeven. QoS configuration:QoS configuration steps: Set the priority of the port, set the priority mode of the switch trust message, queue scheduling, port speed limit[H3c-ethernet0/3]priority 7 sets the port priority to 7 and defaults to 0[H3c]priority-trust Cos sets the priority of the switch trust message to the COS (802.1p priority, default) and can also be set to DSCP mode (DSCP priority mode)[H3c]queue-scheduler HQ-WRR
the configured parameters, search for the virtual node closest to the hash in the hash ring, and the corresponding server serves as the backend machine of the request. Therefore, when the weighted field is equal to 0, the number of virtual nodes and the number of IP addresses are equal. Therefore, you can directly modulo the hash value against the total number of IP addresses. If weighted is not equal to 0, the number of virtual nodes and the number of IP addresses are different. Therefore, the
Round Robin Scheduling;
Minimal connection scheduling;
Weighted Least connection Scheduling;
Based on connections with the least locality;
Local least join with replication;
Target address hash scheduling;
Hash scheduling of source addresses;
Round-robin algorithm (RR): requests are scheduled to different servers in a sequential loop. The most specific method of this algorithm is simple implementation, the polling algorithm assumes that all servers have the same processing capability. The sched
Lvs nat and dr modes, lvsnatdr
I. nat mode of lvs:
Web: 192.168.3.124 is sent to the backend realserver by accessing the reverse proxy 192.168.8.123: 80 of nginx.
Lvs end eth0: dip 192.168.3.123 eth0: 0 vip 192.168.8.123
Realserver1 end eth0: 192.168.3.128 echo "hello, 192.168.3.128"> 1.html
Realserver2 end eth0: 192.168.3.129 echo "hello, 192.168.3.129"> 1.html
Operations on lvs:
Ipvsadm-A-t 192.168.8.123: 80-s wrr
Ipvsadm-a-t 192.168.8.123: 80-r 1
Http://linux.chinaunix.net/techdoc/net/2009/07/21/1125256.shtml
# Modprobe ip_vs
LVS + keepalived for high-availability clusters
Source: chinaunix blog Date: 2009.07.21 (comments in total) I want to comment
Operating System Platform: centos5.2Software: LVS + keepalivedLVS + keepalived IntroductionLVSLVS is short for Linux virtual server, which is a virtual server cluster system. This project was establishe
install ipvsadm 3: ipvsadm command complete 1 implement management cluster service: ipvsadm-a-t 192.168.0.10: 80-s RR 2 implements Management Cluster RealServer:
Ipvsadm-a-t 192.168.0.10: 80-r 192.168.100.7-m
Ipvsadm-a-t 192.168.0.10: 80-r 192.168.100.9-m
Step 2Configure RS1 and rs2 take RS1 as an example. 1. Network correctness route add default GW 192.168.100.10. If not, use this command to modify the gateway or setup for network settings. 2. Prepare a web server (such as httpd) and p
load balancer, the load balancer implements the request by modifying the destination IP address of the request, thus enabling the load balancer to be forwarded.Advantages: Better performance.Disadvantage: The bandwidth of the load balancer becomes a bottleneck.5, Data link layer load balancing . After the request arrives at the load balancer, the load balancer does load balancing by modifying the requested MAC address, unlike the IP load balancer, which returns the customer directly after the r
, especially when uploading large files at once.4, theIP layer load Balancing . After the request arrives at the load balancer, the load balancer implements the request by modifying the destination IP address of the request, thus enabling the load balancer to be forwarded.Advantages: Better performance.Disadvantage: The bandwidth of the load balancer becomes a bottleneck.5, Data link layer load balancing . After the request arrives at the load balancer, the load balancer does load balancing by m
performance, especially when uploading large files at once.4. IP layer load Balancing . After the request arrives at the load balancer, the load balancer implements the request by modifying the destination IP address of the request, thus enabling the load balancer to be forwarded.Advantages: Better performance.Disadvantage: The bandwidth of the load balancer becomes a bottleneck. 5. Data Link Layer load balancing . After the request arrives at the load balancer, the load balancer does load b
address of the request, so that the load is balanced.
Advantages: Better performance.
Disadvantage: The bandwidth of the load balancer becomes the bottleneck.
5, Data link layer load balance. After the request arrives at the load balancer, the load balancer achieves load balancing by modifying the requested MAC address, which, unlike IP load balancing, returns directly to the customer after the request has been made to the server. Without the need to go through the load balancer.
2, the second
192.168.226.130 RS2 ens33 192.168.226.131 Specifies that the VIP is 192.168.226.100,dir VIP binding on the ENS37, of course, you can directly bind a virtual network card, such as Ens33:2 above each machine requires a public network IP Dir writes the script vim/usr/local/sbin/lvs_dr.sh//content as follows #! /bin/bashecho 1 > /proc/sys/net/ipv4/ip_forwardipv=/usr/sbin/ipvsadmvip=192.168.226.100rs1=192.168.226.130rs2=192.168.226.131#注意这里的网卡名字ifconfig ens37 $vip broadcast $vip netmask 255.255.
#通过list类创建的对象#对象. Method () #li对象调用XX方法###################################### #灰魔法 (the method provided in the list class) #########################################参数#1. The original value was last appendedLi = [11, 22, 33, 44]Li.append (5)Li.append (' AA ')Li.append ([1122,1234])Print (LI)Operation Result:[One, 5, a, 1122, 1234].#2. Emptying the listLi = [11, 22, 33, 44]Li.clear ()Print (LI)Operation Resul
Model-m:nat model-W: Weight2. Modification:-E3. Delete:-D ipvsadm-d-t|u|f service-address-r server-address3. Managing view of Cluster services1.ipvsadm-l|l [Options]OPTIONS:-N: Digital format display--stats Statistical information--rate: Statistical rate--timeout: Shows the session timeout length for TCP, Tcpinfo, and UDP-C: Number of connection clients4. Situation counter: ipvsadm-z [-t|u|f service-address] 5. Situation rule: Ipvsadm–c 6. Save the rule:1.ipvsadm-s >/path/to/somefile2.ipvsadm-s
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.