Common Parameters and basic usage of ipvsadm In the Server Load balancer cluster, and ipvsadm In the Server Load balancer Cluster

Source: Internet
Author: User

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 </../..

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.