sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget*/translations/zh_CN/networking/ipvs-sysctlmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/zh_TW/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/it_IT/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ja_JP/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/ko_KR/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/pt_BR/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget*/translations/sp_SP/networking/ipvs-sysctlmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhD/var/lib/git/docbuild/linux/Documentation/networking/ipvs-sysctl.rsthKubhsection)}(hhh](htitle)}(h IPvs-sysctlh]h IPvs-sysctl}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h"/proc/sys/net/ipv4/vs/* Variables:h]h"/proc/sys/net/ipv4/vs/* Variables:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhdefinition_list)}(hhh](hdefinition_list_item)}(h{am_droprate - INTEGER default 10 It sets the always mode drop rate, which is used in the mode 3 of the drop_rate defense. h](hterm)}(ham_droprate - INTEGERh]ham_droprate - INTEGER}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh definition)}(hhh](h paragraph)}(h default 10h]h default 10}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hj ubj)}(hXIt sets the always mode drop rate, which is used in the mode 3 of the drop_rate defense.h]hXIt sets the always mode drop rate, which is used in the mode 3 of the drop_rate defense.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hj ubeh}(h]h ]h"]h$]h&]uh1j hhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(hXHamemthresh - INTEGER default 1024 It sets the available memory threshold (in pages), which is used in the automatic modes of defense. When there is no enough available memory, the respective strategy will be enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1. h](h)}(hamemthresh - INTEGERh]hamemthresh - INTEGER}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubj )}(hhh](j)}(h default 1024h]h default 1024}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjJubj)}(hX$It sets the available memory threshold (in pages), which is used in the automatic modes of defense. When there is no enough available memory, the respective strategy will be enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1.h]hX$It sets the available memory threshold (in pages), which is used in the automatic modes of defense. When there is no enough available memory, the respective strategy will be enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjJubeh}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hbackup_only - BOOLEAN - 0 - disabled (default) - not 0 - enabled If set, disable the director function while the server is in backup mode to avoid packet loops for DR/TUN methods. h](h)}(hbackup_only - BOOLEANh]hbackup_only - BOOLEAN}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjuubj )}(hhh](h bullet_list)}(hhh](h list_item)}(h0 - disabled (default)h]j)}(hjh]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKhjubj)}(hrIf set, disable the director function while the server is in backup mode to avoid packet loops for DR/TUN methods.h]hrIf set, disable the director function while the server is in backup mode to avoid packet loops for DR/TUN methods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXconn_lfactor - INTEGER Possible values: -8 (larger table) .. 8 (smaller table) Default: -4 Controls the sizing of the connection hash table based on the load factor (number of connections per table buckets): 2^conn_lfactor = nodes / buckets As result, the table grows if load increases and shrinks when load decreases in the range of 2^8 - 2^conn_tab_bits (module parameter). The value is a shift count where negative values select buckets = (connection hash nodes << -value) while positive values select buckets = (connection hash nodes >> value). The negative values reduce the collisions and reduce the time for lookups but increase the table size. Positive values will tolerate load above 100% when using smaller table is preferred with the cost of more collisions. If using NAT connections consider decreasing the value with one because they add two nodes in the hash table. Example: -4: grow if load goes above 6% (buckets = nodes * 16) 2: grow if load goes above 400% (buckets = nodes / 4) h](h)}(hconn_lfactor - INTEGERh]hconn_lfactor - INTEGER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubj )}(hhh](j)}(h7Possible values: -8 (larger table) .. 8 (smaller table)h]h7Possible values: -8 (larger table) .. 8 (smaller table)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK!hjubj)}(h Default: -4h]h Default: -4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK#hjubj)}(htControls the sizing of the connection hash table based on the load factor (number of connections per table buckets):h]htControls the sizing of the connection hash table based on the load factor (number of connections per table buckets):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK%hjubh block_quote)}(h!2^conn_lfactor = nodes / buckets h]j)}(h 2^conn_lfactor = nodes / bucketsh]h 2^conn_lfactor = nodes / buckets}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK(hj#ubah}(h]h ]h"]h$]h&]uh1j!hhhK(hjubj)}(hX~As result, the table grows if load increases and shrinks when load decreases in the range of 2^8 - 2^conn_tab_bits (module parameter). The value is a shift count where negative values select buckets = (connection hash nodes << -value) while positive values select buckets = (connection hash nodes >> value). The negative values reduce the collisions and reduce the time for lookups but increase the table size. Positive values will tolerate load above 100% when using smaller table is preferred with the cost of more collisions. If using NAT connections consider decreasing the value with one because they add two nodes in the hash table.h]hX~As result, the table grows if load increases and shrinks when load decreases in the range of 2^8 - 2^conn_tab_bits (module parameter). The value is a shift count where negative values select buckets = (connection hash nodes << -value) while positive values select buckets = (connection hash nodes >> value). The negative values reduce the collisions and reduce the time for lookups but increase the table size. Positive values will tolerate load above 100% when using smaller table is preferred with the cost of more collisions. If using NAT connections consider decreasing the value with one because they add two nodes in the hash table.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK*hjubj)}(htExample: -4: grow if load goes above 6% (buckets = nodes * 16) 2: grow if load goes above 400% (buckets = nodes / 4)h]htExample: -4: grow if load goes above 6% (buckets = nodes * 16) 2: grow if load goes above 400% (buckets = nodes / 4)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK7hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhK9hhhhubh)}(hXconn_reuse_mode - INTEGER 1 - default Controls how ipvs will deal with connections that are detected port reuse. It is a bitmap, with the values being: 0: disable any special handling on port reuse. The new connection will be delivered to the same real server that was servicing the previous connection. bit 1: enable rescheduling of new connections when it is safe. That is, whenever expire_nodest_conn and for TCP sockets, when the connection is in TIME_WAIT state (which is only possible if you use NAT mode). bit 2: it is bit 1 plus, for TCP connections, when connections are in FIN_WAIT state, as this is the last state seen by load balancer in Direct Routing mode. This bit helps on adding new real servers to a very busy cluster. h](h)}(hconn_reuse_mode - INTEGERh]hconn_reuse_mode - INTEGER}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjcubj )}(hhh](j)}(h 1 - defaulth]h 1 - default}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjuubj)}(h0: disable any special handling on port reuse. The new connection will be delivered to the same real server that was servicing the previous connection.h]h0: disable any special handling on port reuse. The new connection will be delivered to the same real server that was servicing the previous connection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKAhjuubj)}(hbit 1: enable rescheduling of new connections when it is safe. That is, whenever expire_nodest_conn and for TCP sockets, when the connection is in TIME_WAIT state (which is only possible if you use NAT mode).h]hbit 1: enable rescheduling of new connections when it is safe. That is, whenever expire_nodest_conn and for TCP sockets, when the connection is in TIME_WAIT state (which is only possible if you use NAT mode).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKEhjuubj)}(hbit 2: it is bit 1 plus, for TCP connections, when connections are in FIN_WAIT state, as this is the last state seen by load balancer in Direct Routing mode. This bit helps on adding new real servers to a very busy cluster.h]hbit 2: it is bit 1 plus, for TCP connections, when connections are in FIN_WAIT state, as this is the last state seen by load balancer in Direct Routing mode. This bit helps on adding new real servers to a very busy cluster.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKJhjuubeh}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1hhhhKMhhhhubh)}(hX;conntrack - BOOLEAN - 0 - disabled (default) - not 0 - enabled If set, maintain connection tracking entries for connections handled by IPVS. This should be enabled if connections handled by IPVS are to be also handled by stateful firewall rules. That is, iptables rules that make use of connection tracking. It is a performance optimisation to disable this setting otherwise. Connections handled by the IPVS FTP application module will have connection tracking entries regardless of this setting. Only available when IPVS is compiled with CONFIG_IP_VS_NFCT enabled. h](h)}(hconntrack - BOOLEANh]hconntrack - BOOLEAN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hjubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjh]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKPhjubj)}(hMIf set, maintain connection tracking entries for connections handled by IPVS.h]hMIf set, maintain connection tracking entries for connections handled by IPVS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKShjubj)}(hThis should be enabled if connections handled by IPVS are to be also handled by stateful firewall rules. That is, iptables rules that make use of connection tracking. It is a performance optimisation to disable this setting otherwise.h]hThis should be enabled if connections handled by IPVS are to be also handled by stateful firewall rules. That is, iptables rules that make use of connection tracking. It is a performance optimisation to disable this setting otherwise.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKVhjubj)}(hxConnections handled by the IPVS FTP application module will have connection tracking entries regardless of this setting.h]hxConnections handled by the IPVS FTP application module will have connection tracking entries regardless of this setting.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK[hjubj)}(hDOnly available when IPVS is compiled with CONFIG_IP_VS_NFCT enabled.h]hDOnly available when IPVS is compiled with CONFIG_IP_VS_NFCT enabled.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK^hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhK^hhhhubh)}(hX"cache_bypass - BOOLEAN - 0 - disabled (default) - not 0 - enabled If it is enabled, forward packets to the original destination directly when no cache server is available and destination address is not local (iph->daddr is RTN_UNICAST). It is mostly used in transparent web cache cluster. h](h)}(hcache_bypass - BOOLEANh]hcache_bypass - BOOLEAN}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghj[ubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjuh]h0 - disabled (default)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKahjsubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKbhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhhhKahjmubj)}(hIf it is enabled, forward packets to the original destination directly when no cache server is available and destination address is not local (iph->daddr is RTN_UNICAST). It is mostly used in transparent web cache cluster.h]hIf it is enabled, forward packets to the original destination directly when no cache server is available and destination address is not local (iph->daddr is RTN_UNICAST). It is mostly used in transparent web cache cluster.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKdhjmubeh}(h]h ]h"]h$]h&]uh1j hj[ubeh}(h]h ]h"]h$]h&]uh1hhhhKghhhhubh)}(hX;debug_level - INTEGER - 0 - transmission error messages (default) - 1 - non-fatal error messages - 2 - configuration - 3 - destination trash - 4 - drop entry - 5 - service lookup - 6 - scheduling - 7 - connection new/expire, lookup and synchronization - 8 - state transition - 9 - binding destination, template checks and applications - 10 - IPVS packet transmission - 11 - IPVS packet handling (ip_vs_in/ip_vs_out) - 12 or more - packet traversal Only available when IPVS is compiled with CONFIG_IP_VS_DEBUG enabled. Higher debugging levels include the messages for lower debugging levels, so setting debug level 2, includes level 0, 1 and 2 messages. Thus, logging becomes more and more verbose the higher the level. h](h)}(hdebug_level - INTEGERh]hdebug_level - INTEGER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hjubj )}(hhh](j)}(hhh](j)}(h20 - transmission error messages (default)h]j)}(hjh]h20 - transmission error messages (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h%1 - non-fatal error messagesh]j)}(hjh]h%1 - non-fatal error messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKkhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h2 - configurationh]j)}(hj h]h2 - configuration}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKlhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h3 - destination trashh]j)}(hj!h]h3 - destination trash}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKmhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h4 - drop entryh]j)}(hj8h]h4 - drop entry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKnhj6ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5 - service lookuph]j)}(hjOh]h5 - service lookup}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKohjMubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h6 - schedulingh]j)}(hjfh]h6 - scheduling}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKphjdubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h>7 - connection new/expire, lookup and synchronizationh]j)}(hj}h]h>7 - connection new/expire, lookup and synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKqhj{ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h8 - state transitionh]j)}(hjh]h8 - state transition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKrhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hB9 - binding destination, template checks and applicationsh]j)}(hjh]hB9 - binding destination, template checks and applications}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKshjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h%10 - IPVS packet transmissionh]j)}(hjh]h%10 - IPVS packet transmission}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKthjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h611 - IPVS packet handling (ip_vs_in/ip_vs_out)h]j)}(hjh]h611 - IPVS packet handling (ip_vs_in/ip_vs_out)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKuhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h12 or more - packet traversal h]j)}(h12 or more - packet traversalh]h12 or more - packet traversal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKjhjubj)}(hEOnly available when IPVS is compiled with CONFIG_IP_VS_DEBUG enabled.h]hEOnly available when IPVS is compiled with CONFIG_IP_VS_DEBUG enabled.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKxhjubj)}(hHigher debugging levels include the messages for lower debugging levels, so setting debug level 2, includes level 0, 1 and 2 messages. Thus, logging becomes more and more verbose the higher the level.h]hHigher debugging levels include the messages for lower debugging levels, so setting debug level 2, includes level 0, 1 and 2 messages. Thus, logging becomes more and more verbose the higher the level.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKzhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhK}hhhhubh)}(hX drop_entry - INTEGER - 0 - disabled (default) The drop_entry defense is to randomly drop entries in the connection hash table, just in order to collect back some memory for new connections. In the current code, the drop_entry procedure can be activated every second, then it randomly scans 1/32 of the whole and drops entries that are in the SYN-RECV/SYNACK state, which should be effective against syn-flooding attack. The valid values of drop_entry are from 0 to 3, where 0 means that this strategy is always disabled, 1 and 2 mean automatic modes (when there is no enough available memory, the strategy is enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1), and 3 means that the strategy is always enabled. h](h)}(hdrop_entry - INTEGERh]hdrop_entry - INTEGER}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj4ubj )}(hhh](j)}(hhh]j)}(h0 - disabled (default) h]j)}(h0 - disabled (default)h]h0 - disabled (default)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjLubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhhhKhjFubj)}(hXuThe drop_entry defense is to randomly drop entries in the connection hash table, just in order to collect back some memory for new connections. In the current code, the drop_entry procedure can be activated every second, then it randomly scans 1/32 of the whole and drops entries that are in the SYN-RECV/SYNACK state, which should be effective against syn-flooding attack.h]hXuThe drop_entry defense is to randomly drop entries in the connection hash table, just in order to collect back some memory for new connections. In the current code, the drop_entry procedure can be activated every second, then it randomly scans 1/32 of the whole and drops entries that are in the SYN-RECV/SYNACK state, which should be effective against syn-flooding attack.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjFubj)}(hXcThe valid values of drop_entry are from 0 to 3, where 0 means that this strategy is always disabled, 1 and 2 mean automatic modes (when there is no enough available memory, the strategy is enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1), and 3 means that the strategy is always enabled.h]hXcThe valid values of drop_entry are from 0 to 3, where 0 means that this strategy is always disabled, 1 and 2 mean automatic modes (when there is no enough available memory, the strategy is enabled and the variable is automatically set to 2, otherwise the strategy is disabled and the variable is set to 1), and 3 means that the strategy is always enabled.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjFubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX-drop_packet - INTEGER - 0 - disabled (default) The drop_packet defense is designed to drop 1/rate packets before forwarding them to real servers. If the rate is 1, then drop all the incoming packets. The value definition is the same as that of the drop_entry. In the automatic mode, the rate is determined by the follow formula: rate = amemthresh / (amemthresh - available_memory) when available memory is less than the available memory threshold. When the mode 3 is set, the always mode drop rate is controlled by the /proc/sys/net/ipv4/vs/am_droprate. h](h)}(hdrop_packet - INTEGERh]hdrop_packet - INTEGER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj )}(hhh](j)}(hhh]j)}(h0 - disabled (default) h]j)}(h0 - disabled (default)h]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhhhKhjubj)}(hThe drop_packet defense is designed to drop 1/rate packets before forwarding them to real servers. If the rate is 1, then drop all the incoming packets.h]hThe drop_packet defense is designed to drop 1/rate packets before forwarding them to real servers. If the rate is 1, then drop all the incoming packets.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hXaThe value definition is the same as that of the drop_entry. In the automatic mode, the rate is determined by the follow formula: rate = amemthresh / (amemthresh - available_memory) when available memory is less than the available memory threshold. When the mode 3 is set, the always mode drop rate is controlled by the /proc/sys/net/ipv4/vs/am_droprate.h]hXaThe value definition is the same as that of the drop_entry. In the automatic mode, the rate is determined by the follow formula: rate = amemthresh / (amemthresh - available_memory) when available memory is less than the available memory threshold. When the mode 3 is set, the always mode drop rate is controlled by the /proc/sys/net/ipv4/vs/am_droprate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXWest_cpulist - CPULIST Allowed CPUs for estimation kthreads Syntax: standard cpulist format empty list - stop kthread tasks and estimation default - the system's housekeeping CPUs for kthreads Example: "all": all possible CPUs "0-N": all possible CPUs, N denotes last CPU number "0,1-N:1/2": first and all CPUs with odd number "": empty list h](h)}(hest_cpulist - CPULISTh]hest_cpulist - CPULIST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj )}(hhh](j)}(h$Allowed CPUs for estimation kthreadsh]h$Allowed CPUs for estimation kthreads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hSyntax: standard cpulist format empty list - stop kthread tasks and estimation default - the system's housekeeping CPUs for kthreadsh]hSyntax: standard cpulist format empty list - stop kthread tasks and estimation default - the system’s housekeeping CPUs for kthreads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hExample: "all": all possible CPUs "0-N": all possible CPUs, N denotes last CPU number "0,1-N:1/2": first and all CPUs with odd number "": empty listh]hExample: “all”: all possible CPUs “0-N”: all possible CPUs, N denotes last CPU number “0,1-N:1/2”: first and all CPUs with odd number “”: empty list}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hest_nice - INTEGER default 0 Valid range: -20 (more favorable) .. 19 (less favorable) Niceness value to use for the estimation kthreads (scheduling priority) h](h)}(hest_nice - INTEGERh]hest_nice - INTEGER}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubj )}(hhh](j)}(hBdefault 0 Valid range: -20 (more favorable) .. 19 (less favorable)h]hBdefault 0 Valid range: -20 (more favorable) .. 19 (less favorable)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjMubj)}(hGNiceness value to use for the estimation kthreads (scheduling priority)h]hGNiceness value to use for the estimation kthreads (scheduling priority)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjMubeh}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXexpire_nodest_conn - BOOLEAN - 0 - disabled (default) - not 0 - enabled The default value is 0, the load balancer will silently drop packets when its destination server is not available. It may be useful, when user-space monitoring program deletes the destination server (because of server overload or wrong detection) and add back the server later, and the connections to the server can continue. If this feature is enabled, the load balancer will expire the connection immediately when a packet arrives and its destination server is not available, then the client program will be notified that the connection is closed. This is equivalent to the feature some people requires to flush connections when its destination is not available. h](h)}(hexpire_nodest_conn - BOOLEANh]hexpire_nodest_conn - BOOLEAN}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjxubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjh]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubj)}(hXEThe default value is 0, the load balancer will silently drop packets when its destination server is not available. It may be useful, when user-space monitoring program deletes the destination server (because of server overload or wrong detection) and add back the server later, and the connections to the server can continue.h]hXEThe default value is 0, the load balancer will silently drop packets when its destination server is not available. It may be useful, when user-space monitoring program deletes the destination server (because of server overload or wrong detection) and add back the server later, and the connections to the server can continue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hXRIf this feature is enabled, the load balancer will expire the connection immediately when a packet arrives and its destination server is not available, then the client program will be notified that the connection is closed. This is equivalent to the feature some people requires to flush connections when its destination is not available.h]hXRIf this feature is enabled, the load balancer will expire the connection immediately when a packet arrives and its destination server is not available, then the client program will be notified that the connection is closed. This is equivalent to the feature some people requires to flush connections when its destination is not available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjxubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXexpire_quiescent_template - BOOLEAN - 0 - disabled (default) - not 0 - enabled When set to a non-zero value, the load balancer will expire persistent templates when the destination server is quiescent. This may be useful, when a user makes a destination server quiescent by setting its weight to 0 and it is desired that subsequent otherwise persistent connections are sent to a different destination server. By default new persistent connections are allowed to quiescent destination servers. If this feature is enabled, the load balancer will expire the persistence template if it is to be used to schedule a new connection and the destination server is quiescent. h](h)}(h#expire_quiescent_template - BOOLEANh]h#expire_quiescent_template - BOOLEAN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjh]h0 - disabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubj)}(hXWhen set to a non-zero value, the load balancer will expire persistent templates when the destination server is quiescent. This may be useful, when a user makes a destination server quiescent by setting its weight to 0 and it is desired that subsequent otherwise persistent connections are sent to a different destination server. By default new persistent connections are allowed to quiescent destination servers.h]hXWhen set to a non-zero value, the load balancer will expire persistent templates when the destination server is quiescent. This may be useful, when a user makes a destination server quiescent by setting its weight to 0 and it is desired that subsequent otherwise persistent connections are sent to a different destination server. By default new persistent connections are allowed to quiescent destination servers.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hIf this feature is enabled, the load balancer will expire the persistence template if it is to be used to schedule a new connection and the destination server is quiescent.h]hIf this feature is enabled, the load balancer will expire the persistence template if it is to be used to schedule a new connection and the destination server is quiescent.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXignore_tunneled - BOOLEAN - 0 - disabled (default) - not 0 - enabled If set, ipvs will set the ipvs_property on all packets which are of unrecognized protocols. This prevents us from routing tunneled protocols like ipip, which is useful to prevent rescheduling packets that have been tunneled to the ipvs host (i.e. to prevent ipvs routing loops when ipvs is also acting as a real server). h](h)}(hignore_tunneled - BOOLEANh]hignore_tunneled - BOOLEAN}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjbubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hj|h]h0 - disabled (default)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjzubah}(h]h ]h"]h$]h&]uh1jhjwubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjtubj)}(hXAIf set, ipvs will set the ipvs_property on all packets which are of unrecognized protocols. This prevents us from routing tunneled protocols like ipip, which is useful to prevent rescheduling packets that have been tunneled to the ipvs host (i.e. to prevent ipvs routing loops when ipvs is also acting as a real server).h]hXAIf set, ipvs will set the ipvs_property on all packets which are of unrecognized protocols. This prevents us from routing tunneled protocols like ipip, which is useful to prevent rescheduling packets that have been tunneled to the ipvs host (i.e. to prevent ipvs routing loops when ipvs is also acting as a real server).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjtubeh}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hnat_icmp_send - BOOLEAN - 0 - disabled (default) - not 0 - enabled It controls sending icmp error messages (ICMP_DEST_UNREACH) for VS/NAT when the load balancer receives packets from real servers but the connection entries don't exist. h](h)}(hnat_icmp_send - BOOLEANh]hnat_icmp_send - BOOLEAN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjh]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubj)}(hIt controls sending icmp error messages (ICMP_DEST_UNREACH) for VS/NAT when the load balancer receives packets from real servers but the connection entries don't exist.h]hIt controls sending icmp error messages (ICMP_DEST_UNREACH) for VS/NAT when the load balancer receives packets from real servers but the connection entries don’t exist.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hpmtu_disc - BOOLEAN - 0 - disabled - not 0 - enabled (default) By default, reject with FRAG_NEEDED all DF packets that exceed the PMTU, irrespective of the forwarding method. For TUN method the flag can be disabled to fragment such packets. h](h)}(hpmtu_disc - BOOLEANh]hpmtu_disc - BOOLEAN}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0ubj )}(hhh](j)}(hhh](j)}(h 0 - disabledh]j)}(hjJh]h 0 - disabled}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjHubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(hnot 0 - enabled (default) h]j)}(hnot 0 - enabled (default)h]hnot 0 - enabled (default)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj_ubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjBubj)}(hBy default, reject with FRAG_NEEDED all DF packets that exceed the PMTU, irrespective of the forwarding method. For TUN method the flag can be disabled to fragment such packets.h]hBy default, reject with FRAG_NEEDED all DF packets that exceed the PMTU, irrespective of the forwarding method. For TUN method the flag can be disabled to fragment such packets.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjBubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX3secure_tcp - INTEGER - 0 - disabled (default) The secure_tcp defense is to use a more complicated TCP state transition table. For VS/NAT, it also delays entering the TCP ESTABLISHED state until the three way handshake is completed. The value definition is the same as that of drop_entry and drop_packet. h](h)}(hsecure_tcp - INTEGERh]hsecure_tcp - INTEGER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj )}(hhh](j)}(hhh]j)}(h0 - disabled (default) h]j)}(h0 - disabled (default)h]h0 - disabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhhhKhjubj)}(hThe secure_tcp defense is to use a more complicated TCP state transition table. For VS/NAT, it also delays entering the TCP ESTABLISHED state until the three way handshake is completed.h]hThe secure_tcp defense is to use a more complicated TCP state transition table. For VS/NAT, it also delays entering the TCP ESTABLISHED state until the three way handshake is completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hGThe value definition is the same as that of drop_entry and drop_packet.h]hGThe value definition is the same as that of drop_entry and drop_packet.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX(svc_lfactor - INTEGER Possible values: -8 (larger table) .. 8 (smaller table) Default: -3 Controls the sizing of the service hash table based on the load factor (number of services per table buckets). The table will grow and shrink in the range of 2^4 - 2^20. See conn_lfactor for explanation. h](h)}(hsvc_lfactor - INTEGERh]hsvc_lfactor - INTEGER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj )}(hhh](j)}(h7Possible values: -8 (larger table) .. 8 (smaller table)h]h7Possible values: -8 (larger table) .. 8 (smaller table)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(h Default: -3h]h Default: -3}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hControls the sizing of the service hash table based on the load factor (number of services per table buckets). The table will grow and shrink in the range of 2^4 - 2^20. See conn_lfactor for explanation.h]hControls the sizing of the service hash table based on the load factor (number of services per table buckets). The table will grow and shrink in the range of 2^4 - 2^20. See conn_lfactor for explanation.}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhMhhhhubh)}(hX#sync_threshold - vector of 2 INTEGERs: sync_threshold, sync_period default 3 50 It sets synchronization threshold, which is the minimum number of incoming packets that a connection needs to receive before the connection will be synchronized. A connection will be synchronized, every time the number of its incoming packets modulus sync_period equals the threshold. The range of the threshold is from 0 to sync_period. When sync_period and sync_refresh_period are 0, send sync only for state changes or only once when pkts matches sync_threshold h](h)}(hBsync_threshold - vector of 2 INTEGERs: sync_threshold, sync_periodh]hBsync_threshold - vector of 2 INTEGERs: sync_threshold, sync_period}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ ubj )}(hhh](j)}(h default 3 50h]h default 3 50}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjR ubj)}(hXQIt sets synchronization threshold, which is the minimum number of incoming packets that a connection needs to receive before the connection will be synchronized. A connection will be synchronized, every time the number of its incoming packets modulus sync_period equals the threshold. The range of the threshold is from 0 to sync_period.h]hXQIt sets synchronization threshold, which is the minimum number of incoming packets that a connection needs to receive before the connection will be synchronized. A connection will be synchronized, every time the number of its incoming packets modulus sync_period equals the threshold. The range of the threshold is from 0 to sync_period.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjR ubj)}(h~When sync_period and sync_refresh_period are 0, send sync only for state changes or only once when pkts matches sync_thresholdh]h~When sync_period and sync_refresh_period are 0, send sync only for state changes or only once when pkts matches sync_threshold}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjR ubeh}(h]h ]h"]h$]h&]uh1j hj@ ubeh}(h]h ]h"]h$]h&]uh1hhhhMhhhhubh)}(hXsync_refresh_period - UNSIGNED INTEGER default 0 In seconds, difference in reported connection timer that triggers new sync message. It can be used to avoid sync messages for the specified period (or half of the connection timeout if it is lower) if connection state is not changed since last sync. This is useful for normal connections with high traffic to reduce sync rate. Additionally, retry sync_retries times with period of sync_refresh_period/8. h](h)}(h&sync_refresh_period - UNSIGNED INTEGERh]h&sync_refresh_period - UNSIGNED INTEGER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj )}(hhh](j)}(h default 0h]h default 0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hIn seconds, difference in reported connection timer that triggers new sync message. It can be used to avoid sync messages for the specified period (or half of the connection timeout if it is lower) if connection state is not changed since last sync.h]hIn seconds, difference in reported connection timer that triggers new sync message. It can be used to avoid sync messages for the specified period (or half of the connection timeout if it is lower) if connection state is not changed since last sync.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hThis is useful for normal connections with high traffic to reduce sync rate. Additionally, retry sync_retries times with period of sync_refresh_period/8.h]hThis is useful for normal connections with high traffic to reduce sync rate. Additionally, retry sync_retries times with period of sync_refresh_period/8.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMhhhhubh)}(hsync_retries - INTEGER default 0 Defines sync retries with period of sync_refresh_period/8. Useful to protect against loss of sync messages. The range of the sync_retries is from 0 to 3. h](h)}(hsync_retries - INTEGERh]hsync_retries - INTEGER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj ubj )}(hhh](j)}(h default 0h]h default 0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hDefines sync retries with period of sync_refresh_period/8. Useful to protect against loss of sync messages. The range of the sync_retries is from 0 to 3.h]hDefines sync retries with period of sync_refresh_period/8. Useful to protect against loss of sync messages. The range of the sync_retries is from 0 to 3.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhM!hhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhNubj)}(hsync_qlen_max - UNSIGNED LONGh]hsync_qlen_max - UNSIGNED LONG}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM#hhhhubj")}(hHard limit for queued sync messages that are not sent yet. It defaults to 1/32 of the memory pages but actually represents number of messages. It will protect us from allocating large parts of memory when the sending rate is lower than the queuing rate. h]j)}(hHard limit for queued sync messages that are not sent yet. It defaults to 1/32 of the memory pages but actually represents number of messages. It will protect us from allocating large parts of memory when the sending rate is lower than the queuing rate.h]hHard limit for queued sync messages that are not sent yet. It defaults to 1/32 of the memory pages but actually represents number of messages. It will protect us from allocating large parts of memory when the sending rate is lower than the queuing rate.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM%hj' ubah}(h]h ]h"]h$]h&]uh1j!hhhM%hhhhubh)}(hhh](h)}(hsync_sock_size - INTEGER default 0 Configuration of SNDBUF (master) or RCVBUF (slave) socket limit. Default value is 0 (preserve system defaults). h](h)}(hsync_sock_size - INTEGERh]hsync_sock_size - INTEGER}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hjB ubj )}(hhh](j)}(h default 0h]h default 0}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM,hjT ubj)}(hoConfiguration of SNDBUF (master) or RCVBUF (slave) socket limit. Default value is 0 (preserve system defaults).h]hoConfiguration of SNDBUF (master) or RCVBUF (slave) socket limit. Default value is 0 (preserve system defaults).}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM.hjT ubeh}(h]h ]h"]h$]h&]uh1j hjB ubeh}(h]h ]h"]h$]h&]uh1hhhhM/hj? ubh)}(hsync_ports - INTEGER default 1 The number of threads that master and backup servers can use for sync traffic. Every thread will use single UDP port, thread 0 will use the default port 8848 while last thread will use port 8848+sync_ports-1. h](h)}(hsync_ports - INTEGERh]hsync_ports - INTEGER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj ubj )}(hhh](j)}(h default 1h]h default 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hj ubj)}(hThe number of threads that master and backup servers can use for sync traffic. Every thread will use single UDP port, thread 0 will use the default port 8848 while last thread will use port 8848+sync_ports-1.h]hThe number of threads that master and backup servers can use for sync traffic. Every thread will use single UDP port, thread 0 will use the default port 8848 while last thread will use port 8848+sync_ports-1.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM4hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhM7hj? hhubh)}(hXvsnat_reroute - BOOLEAN - 0 - disabled - not 0 - enabled (default) If enabled, recalculate the route of SNATed packets from realservers so that they are routed as if they originate from the director. Otherwise they are routed as if they are forwarded by the director. If policy routing is in effect then it is possible that the route of a packet originating from a director is routed differently to a packet being forwarded by the director. If policy routing is not in effect then the recalculated route will always be the same as the original route so it is an optimisation to disable snat_reroute and avoid the recalculation. h](h)}(hsnat_reroute - BOOLEANh]hsnat_reroute - BOOLEAN}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj ubj )}(hhh](j)}(hhh](j)}(h 0 - disabledh]j)}(hj h]h 0 - disabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM:hj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hnot 0 - enabled (default) h]j)}(hnot 0 - enabled (default)h]hnot 0 - enabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM;hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM:hj ubj)}(hIf enabled, recalculate the route of SNATed packets from realservers so that they are routed as if they originate from the director. Otherwise they are routed as if they are forwarded by the director.h]hIf enabled, recalculate the route of SNATed packets from realservers so that they are routed as if they originate from the director. Otherwise they are routed as if they are forwarded by the director.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM=hj ubj)}(hIf policy routing is in effect then it is possible that the route of a packet originating from a director is routed differently to a packet being forwarded by the director.h]hIf policy routing is in effect then it is possible that the route of a packet originating from a director is routed differently to a packet being forwarded by the director.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMBhj ubj)}(hIf policy routing is not in effect then the recalculated route will always be the same as the original route so it is an optimisation to disable snat_reroute and avoid the recalculation.h]hIf policy routing is not in effect then the recalculated route will always be the same as the original route so it is an optimisation to disable snat_reroute and avoid the recalculation.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMHhj? hhubh)}(hXsync_persist_mode - INTEGER default 0 Controls the synchronisation of connections when using persistence 0: All types of connections are synchronised 1: Attempt to reduce the synchronisation traffic depending on the connection type. For persistent services avoid synchronisation for normal connections, do it only for persistence templates. In such case, for TCP and SCTP it may need enabling sloppy_tcp and sloppy_sctp flags on backup servers. For non-persistent services such optimization is not applied, mode 0 is assumed. h](h)}(hsync_persist_mode - INTEGERh]hsync_persist_mode - INTEGER}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhj? ubj )}(hhh](j)}(h default 0h]h default 0}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMKhjQ ubj)}(hBControls the synchronisation of connections when using persistenceh]hBControls the synchronisation of connections when using persistence}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhjQ ubj)}(h,0: All types of connections are synchronisedh]h,0: All types of connections are synchronised}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhjQ ubj)}(hXw1: Attempt to reduce the synchronisation traffic depending on the connection type. For persistent services avoid synchronisation for normal connections, do it only for persistence templates. In such case, for TCP and SCTP it may need enabling sloppy_tcp and sloppy_sctp flags on backup servers. For non-persistent services such optimization is not applied, mode 0 is assumed.h]hXw1: Attempt to reduce the synchronisation traffic depending on the connection type. For persistent services avoid synchronisation for normal connections, do it only for persistence templates. In such case, for TCP and SCTP it may need enabling sloppy_tcp and sloppy_sctp flags on backup servers. For non-persistent services such optimization is not applied, mode 0 is assumed.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMQhjQ ubeh}(h]h ]h"]h$]h&]uh1j hj? ubeh}(h]h ]h"]h$]h&]uh1hhhhMVhj? hhubh)}(hX'sync_version - INTEGER default 1 The version of the synchronisation protocol used when sending synchronisation messages. 0 selects the original synchronisation protocol (version 0). This should be used when sending synchronisation messages to a legacy system that only understands the original synchronisation protocol. 1 selects the current synchronisation protocol (version 1). This should be used where possible. Kernels with this sync_version entry are able to receive messages of both version 1 and version 2 of the synchronisation protocol. h](h)}(hsync_version - INTEGERh]hsync_version - INTEGER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhj ubj )}(hhh](j)}(h default 1h]h default 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhj ubj)}(hWThe version of the synchronisation protocol used when sending synchronisation messages.h]hWThe version of the synchronisation protocol used when sending synchronisation messages.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM[hj ubj)}(h0 selects the original synchronisation protocol (version 0). This should be used when sending synchronisation messages to a legacy system that only understands the original synchronisation protocol.h]h0 selects the original synchronisation protocol (version 0). This should be used when sending synchronisation messages to a legacy system that only understands the original synchronisation protocol.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hj ubj)}(h_1 selects the current synchronisation protocol (version 1). This should be used where possible.h]h_1 selects the current synchronisation protocol (version 1). This should be used where possible.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMbhj ubj)}(hKernels with this sync_version entry are able to receive messages of both version 1 and version 2 of the synchronisation protocol.h]hKernels with this sync_version entry are able to receive messages of both version 1 and version 2 of the synchronisation protocol.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMehj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMfhj? hhubh)}(hXrun_estimation - BOOLEAN 0 - disabled not 0 - enabled (default) If disabled, the estimation will be suspended and kthread tasks stopped. You can always re-enable estimation by setting this value to 1. But be careful, the first estimation after re-enable is not accurate.h](h)}(hrun_estimation - BOOLEANh]hrun_estimation - BOOLEAN}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj ubj )}(hhh](j)}(h&0 - disabled not 0 - enabled (default)h]h&0 - disabled not 0 - enabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihj ubj)}(hHIf disabled, the estimation will be suspended and kthread tasks stopped.h]hHIf disabled, the estimation will be suspended and kthread tasks stopped.}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMlhj ubj)}(hYou can always re-enable estimation by setting this value to 1. But be careful, the first estimation after re-enable is not accurate.h]hYou can always re-enable estimation by setting this value to 1. But be careful, the first estimation after re-enable is not accurate.}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMohj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMphj? hhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhNubeh}(h]proc-sys-net-ipv4-vs-variablesah ]h"]"/proc/sys/net/ipv4/vs/* variables:ah$]h&]uh1hhhhhhhhKubeh}(h] ipvs-sysctlah ]h"] ipvs-sysctlah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j] jZ jU jR u nametypes}(j] jU uh}(jZ hjR hu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.