Options:--tcp-service -t service-address
service-address is host[:port]
<集群服务地址> 允许集群服务使用的传输协议为TCP
--udp-service -u service-address
service-address is host[:port] <集群服务地址> 允许集群服务使用的传输协议为UDP--icmp-service -q service-address
service-address is host[:port]--icmpv6-service -1 service-address
service-address is host[:port]--fwmark-service -f fwmark
fwmark is an integer greater than zero
使用一个整数值来防火墙标识集群服务,而不是地址、 端口和协议使用它,我们可以通过结合IPtables将多 个以调度器为目标的端口定义成一个防火墙标识,由 ipvsdam通过此项关联标识,则可以实现对一个IP多 端口调度,即实现后端服务器可以开放多个服务--ipv6 -6 fwmark
entry uses IPv6--scheduler -s scheduler
one of rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq,
the default scheduler is wlc.
指定集群服务使用的调度算法:rr|wrr|lc|wlc|lblc |lblcr|dh|sh|sed|nq,默认为wlc--pe engine
alternate persistence engine may be sip,
not set by default.
--persistent -p [timeout]
persistent service
<超时时间> 开启持久化服务,开启它则表示在指定时间内,来自同 一IP的请求都会转发到后端同一台真实服务器上--netmask -M netmask
persistent granularity mask
<网络掩码> 使用网络掩码来屏蔽持久化来源IP的地址范围,默认值 为255.255.255.255,即所有来源IP请求都会享受持久 化服务--real-server -r server-address
server-address is host (and port) <真实服务器地址> 指定真实服务器的主机IP与端口--gatewaying -g
gatewaying (direct routing) (default) 指定真实服务器转发工作模式,使用DR模式,默认--ipip -i
ipip encapsulation (tunneling) 指定真实服务器转发工作模式,使用TUN模式--fullnat -b
fullnat mode--snat -J
SNAT mode--masquerading -m
masquerading (NAT)
指定真实服务器转发工作模式,使用NAT模式--weight -w weight
capacity of real server
<权重值> 指定真实服务器的权重值--u-threshold -x uthreshold
upper threshold of connections <上阀值> 设置转发请求的最大上连接阀值,范围为0~65535,当 当连接数超过指定上限时,LVS则不会转发请求--l-threshold -y lthreshold
lower threshold of connections 设置转发请求的下连接阀值,范围为0~65535,当连接 数降低至指定值时,LVS则继续提供服务,默认值为0--mcast-interface interface
multicast interface for connection sync
设置用于连接同步守护进程的组播接口--syncid sid
syncid for connection sync (default=255) 设置连接同步守护进程的SID号,用于标识,范围0~255--connection -c
output of current IPVS connections 显示连接信息,一般与"-l"连用--timeout
output of timeout (tcp tcpfin udp) 显示TCP、TCPFIN、UDP超时时间信息,一般与"-l"连用--daemon
output of daemon information 显示连接同步守护信息,一般与"-l"连用--stats
output of statistics information 显示统计信息,一般与"-l"连用--rate
output of rate information 显示转发速率信息,一般与"-l"连用--exact
expand numbers (display exact values) 显示数据包和字节计数器的确切值,扩大字符长度--thresholds
output of thresholds information 显示阀值信息,一般与"-l"连用--persistent-conn
output of persistent connection info 显示持久化连接信息,一般与"-l"连用--sockpair
output connection info of specified socket pair (proto:sip:sport:tip:tport)
版权声明:
本文来源网络,所有图片文章版权属于原作者,如有侵权,联系删除。
本文网址:https://www.mushiming.com/mjsbk/4676.html