Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Description of common parameters of IPVSADM

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The following brings you an explanation of the common parameters of IPVSADM, hoping to bring some help to you in practical application. Load balancing involves many things, and there are not many theories. There are many books on the Internet. Today, we will use the accumulated experience in the industry to do an answer.

"1" IPVSADM common parameters description:

-A: add a new virtual server record to the virtual cloud server table in the kernel

-E: edit a virtual server record in the kernel virtual server table

-D: delete a virtual server record in the kernel virtual server table

-C: clear all records in the kernel virtual server table

-R: restore virtual server rules

-S: saves virtual server rules and outputs them in a readable format with the-R option

-a: add a new real server record to a record in the kernel virtual server table

-e: edit a real server record in a virtual server record

-d: delete a real server record from a virtual server record

-L |-l: displays the kernel virtual server table

-Z: virtual service table counter is cleared (clear the current number of connections, etc.)

-set:- tcp tcpfin udp sets the connection timeout value

-- start-daemon: starts the synchronization daemon

-- stop-daemon: stops the synchronization daemon

-h: displays help information

-t: indicates that the virtual server provides TCP service

-u: indicates that the virtual server provides UDP service

-f: indicates the type of service marked by iptables

-s: the scheduling algorithm used. Common options: rr | wrr | lc | wlc | lblc | lblcr | dh | sh | sed | nq

-p: persistent service

-r: real server

-g: specifies that the operating mode of LVS is direct routing mode

-I: specifies that the working mode of LVS is tunnel mode

-m: specifies that the working mode of LVS is NAT mode

-w: the weight of the real server

-c: displays the current number of connections in LVS

-timeout: displays the timeout value of tcp tcpfin udp

-- daemon: displays the status of the synchronous daemon

-- stats: displays statistics

-- rate: displays rate information

-- sort: sorts the output of virtual servers and real servers

-n: the digital form of the output IP address and port

"2" polling explanation:

RR: pure polling, compared with rubbish. Each request is dispatched sequentially on the real server.

WRR: polling with weight. Each request is dispatched sequentially through the real server, but more jobs are assigned to the more capable server.

LC: dispatch based on the minimum number of connections.

WLC: weighted. The weight of the machine is high.

LBLC: cache server cluster. Based on the local minimum connection. Pass the request to a server with a low load.

LBLCR: a cluster of cache servers with replication scheduling. A page is cached on server A, and the number of visits is extremely high, while the load of other cache servers is low. Monitor whether to visit the same page, and if you visit the same page, assign the request to other servers.

DH: target hash scheduling. Bind two ip in realserver. Ld judges the ISP quotient of the incoming person and transfers it to the corresponding IP.

SH: source address hash. Source differentiation based on client addresses. (rarely used)

SED: the shortest expected delay.

NQ: minimum queue scheduling, no queue. If the number of connections of a realserver is 0, it will be allocated directly, and there is no need for sed operation.

After reading the above description of the common parameters of IPVSADM, if there is anything else you need to know, you can find what you are interested in in the industry information or find our professional technical engineer to answer, the technical engineer has more than ten years of experience in the industry. Official website link www.yisu.com

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report