Common Parameters and basic usage of ipvsadm In the Server Load balancer cluster, and ipvsadm In the Server Load balancer Cluster
----
Fixed Scheduling
Rr: Argument
Wrr: weighted argument
Weight, weighted
Sh: source hash, source address hash
Dynamic Scheduling
Lc: Minimum Link
Active * 256 + inactive
Wlc: weighted least Link
(Active * 256 + inactive)/weight
Sed: Minimum Expected latency
(Active + 1) * 256/weight
Nq: never queue (never queuing)
LBLC: local-based least Link
LBLCR: Least link based on local replication function
----
Lvs
Ipvsadm: a command line tool for managing cluster services
Manage cluster services
Add:-A-t | u | f service-address [-s sheduler]
{-T: TCP Cluster
-U: UDP protocol cluster} service-address: IP: PORT (socket)
-F: FWM: Firewall flag
Service-address: Mark Number
Modify:-E
Delete:-D-t | u | f service-address
Manage the RS of the Machine Service Center
Add:-a-t | u | f service-address-r server-address [-g | I | m] [-w weight]
-T | u | f service-address: a cluster service defined in advance
-R server-address: the address of an RS. In the NAT model, IP: PORT can be used for PORT ing:
[-G | I | m]: lvs type
-G: DR
-I: TUN
-M: NAT
[-W weight]: defines the weight.
Modify:-e
Delete:-d-t | u | f serrvice address-r service-add
# Ipvsadm-a-t xx. xx: 80-r xx. xx-m
View
-L | l
-N: IP address and port number displayed in numeric format
-- Stats: Statistical Information
-- Rate: rate
-- Timeout: Display TCP/TCPFIN/UDP session timeout duration
-- Sort: Sorting
-C: displays the link status of the current IPVS.
-Z: clears the counter.
-C: Clear ipvs rules
-S: Use output redirection to save rules
# Ipvsadm-S> /../..
-R: use input redirection to load rules
# Ipvsadm-R </../..