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_max - INTEGER Limit for number of connections, per netns. Controls the soft and hard limit for number of connections. Initially, the platform specific limit is assigned for init_net. The value can be changed and later the soft limit propagated to other networking namespaces. Privileged admin can change both limits up to the value of the platform limit while the unprivileged admin can change only the soft limit up to the value of the hard limit. For setups using conntrack=1 (CONFIG_IP_VS_NFCT for Netfilter connection tracking) the connections can be limited also by nf_conntrack_max. Limits for init_net: ======================= =============== ============= \ soft limit hard limit ======================= =============== ============= create netns platform platform priv admin 0 .. platform 0 .. platform ======================= =============== ============= Limits for new netns: ======================= =============== ============= \ soft limit hard limit ======================= =============== ============= create netns init_net:soft init_net:soft priv admin 0 .. platform 0 .. platform unpriv admin 0 .. hard N/A ======================= =============== ============= Limits per platform: - 1,073,741,824 (2^30 for 64-bit) - 16,777,216 (2^24 for 32-bit) Possible values: 0 .. platform limit Default: platform limit h](h)}(hconn_max - INTEGERh]hconn_max - INTEGER}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjcubj )}(hhh](j)}(h+Limit for number of connections, per netns.h]h+Limit for number of connections, per netns.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjuubj)}(hPrivileged admin can change both limits up to the value of the platform limit while the unprivileged admin can change only the soft limit up to the value of the hard limit.h]hPrivileged admin can change both limits up to the value of the platform limit while the unprivileged admin can change only the soft limit up to the value of the hard limit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKChjuubj)}(hFor setups using conntrack=1 (CONFIG_IP_VS_NFCT for Netfilter connection tracking) the connections can be limited also by nf_conntrack_max.h]hFor setups using conntrack=1 (CONFIG_IP_VS_NFCT for Netfilter connection tracking) the connections can be limited also by nf_conntrack_max.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKGhjuubj)}(hLimits for init_net:h]hLimits for init_net:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKKhjuubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhjubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]j)}(h\h]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h soft limith]h soft limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKNhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h hard limith]h hard limit}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKNhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubhtbody)}(hhh](j)}(hhh](j)}(hhh]j)}(h create netnsh]h create netns}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKPhjMubah}(h]h ]h"]h$]h&]uh1jhjJubj)}(hhh]j)}(hplatformh]hplatform}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKPhjdubah}(h]h ]h"]h$]h&]uh1jhjJubj)}(hhh]j)}(hplatformh]hplatform}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKPhj{ubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjGubj)}(hhh](j)}(hhh]j)}(h priv adminh]h priv admin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h 0 .. platformh]h 0 .. platform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h 0 .. platformh]h 0 .. platform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jEhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjuubj)}(hLimits for new netns:h]hLimits for new netns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKThjuubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhj ubj)}(hhh]j)}(hhh](j)}(hhh]j)}(hjh]h}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKWhj1ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j)}(h soft limith]h soft limit}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKWhjGubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j)}(h hard limith]h hard limit}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKWhj^ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhj ubjF)}(hhh](j)}(hhh](j)}(hhh]j)}(h create netnsh]h create netns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h init_net:softh]h init_net:soft}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h init_net:softh]h init_net:soft}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h priv adminh]h priv admin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h 0 .. platformh]h 0 .. platform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j)}(h 0 .. platformh]h 0 .. platform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h unpriv adminh]h unpriv admin}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK[hj#ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]j)}(h 0 .. hardh]h 0 .. hard}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK[hj:ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]j)}(hN/Ah]hN/A}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK[hjQubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jEhj ubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjuubj)}(hLimits per platform:h]hLimits per platform:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK^hjuubj)}(hhh](j)}(h1,073,741,824 (2^30 for 64-bit)h]j)}(hjh]h1,073,741,824 (2^30 for 64-bit)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h16,777,216 (2^24 for 32-bit) h]j)}(h16,777,216 (2^24 for 32-bit)h]h16,777,216 (2^24 for 32-bit)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhK`hjuubj)}(h$Possible values: 0 .. platform limith]h$Possible values: 0 .. platform limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKchjuubj)}(hDefault: platform limith]hDefault: platform limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKehjuubeh}(h]h ]h"]h$]h&]uh1j hjcubeh}(h]h ]h"]h$]h&]uh1hhhhKehhhhubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjubj )}(hhh](j)}(h 1 - defaulth]h 1 - default}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhhjubj)}(hqControls how ipvs will deal with connections that are detected port reuse. It is a bitmap, with the values being:h]hqControls how ipvs will deal with connections that are detected port reuse. It is a bitmap, with the values being:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKjhjubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKmhjubj)}(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).}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKqhjubj)}(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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKvhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKyhhhhubh)}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjVubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjph]h0 - disabled (default)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK|hjnubah}(h]h ]h"]h$]h&]uh1jhjkubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK}hjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhhhK|hjhubj)}(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&]uh1jhhhKhjhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhubeh}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(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}(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)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjNubj )}(hhh](j)}(hhh](j)}(h20 - transmission error messages (default)h]j)}(hjhh]h20 - transmission error messages (default)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjfubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h%1 - non-fatal error messagesh]j)}(hjh]h%1 - non-fatal error messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h2 - configurationh]j)}(hjh]h2 - configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h3 - destination trashh]j)}(hjh]h3 - destination trash}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h4 - drop entryh]j)}(hjh]h4 - drop entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h5 - service lookuph]j)}(hjh]h5 - service lookup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h6 - schedulingh]j)}(hjh]h6 - scheduling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h>7 - connection new/expire, lookup and synchronizationh]j)}(hj h]h>7 - connection new/expire, lookup and synchronization}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h8 - state transitionh]j)}(hj h]h8 - state transition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(hB9 - binding destination, template checks and applicationsh]j)}(hj7h]hB9 - binding destination, template checks and applications}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj5ubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h%10 - IPVS packet transmissionh]j)}(hjNh]h%10 - IPVS packet transmission}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjLubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h611 - IPVS packet handling (ip_vs_in/ip_vs_out)h]j)}(hjeh]h611 - IPVS packet handling (ip_vs_in/ip_vs_out)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h12 or more - packet traversal h]j)}(h12 or more - packet traversalh]h12 or more - packet traversal}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjzubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj`ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj`ubj)}(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&]uh1jhhhKhj`ubeh}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(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}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubj )}(hhh](j)}(hhh]j)}(h0 - disabled (default) h]j)}(h0 - disabled (default)h]h0 - disabled (default)}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj6 ubah}(h]h ]h"]h$]h&]uh1jhj3 ubah}(h]h ]h"]h$]h&]jjuh1jhhhKhj0 ubj)}(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.}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj0 ubj)}(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.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj0 ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj| ubj )}(hhh](j)}(h$Allowed CPUs for estimation kthreadsh]h$Allowed CPUs for estimation kthreads}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(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&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j hj| ubeh}(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)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(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&]uh1jhhhKhj ubeh}(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&]uh1hhhhKhj ubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hj h]h0 - disabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj3 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubj)}(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.}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(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.}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(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}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjy ubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hj h]h0 - disabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubj)}(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&]uh1jhhhKhj ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j hjy ubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hj h]h0 - disabled (default)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj ubj)}(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).}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhM hhhhubh)}(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}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjU ubj )}(hhh](j)}(hhh](j)}(h0 - disabled (default)h]j)}(hjo h]h0 - disabled (default)}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjm ubah}(h]h ]h"]h$]h&]uh1jhjj ubj)}(hnot 0 - enabled h]j)}(hnot 0 - enabledh]hnot 0 - enabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1jhjj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM hjg ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjg ubeh}(h]h ]h"]h$]h&]uh1j hjU ubeh}(h]h ]h"]h$]h&]uh1hhhhMhhhhubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj )}(hhh](j)}(hhh](j)}(h 0 - disabledh]j)}(hj h]h 0 - disabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj 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&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj ubj)}(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&]uh1jhhhMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMhhhhubh)}(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}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj# ubj )}(hhh](j)}(hhh]j)}(h0 - disabled (default) h]j)}(h0 - disabled (default)h]h0 - disabled (default)}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj; ubah}(h]h ]h"]h$]h&]uh1jhj8 ubah}(h]h ]h"]h$]h&]jjuh1jhhhMhj5 ubj)}(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.}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5 ubj)}(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.}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM"hj5 ubeh}(h]h ]h"]h$]h&]uh1j hj# ubeh}(h]h ]h"]h$]h&]uh1hhhhM#hhhhubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hj ubj )}(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&]uh1jhhhM&hj ubj)}(h Default: -3h]h Default: -3}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM(hj 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&]uh1jhhhM*hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhM-hhhhubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hj ubj )}(hhh](j)}(h default 3 50h]h default 3 50}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hj 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hj 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM9hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhM:hhhhubh)}(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&]uh1hhhhMFhj ubj )}(hhh](j)}(h default 0h]h default 0}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM=hj) 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&]uh1jhhhM?hj) 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.}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhj) ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMFhhhhubh)}(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}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjb ubj )}(hhh](j)}(h default 0h]h default 0}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMIhjt 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&]uh1jhhhMKhjt ubeh}(h]h ]h"]h$]h&]uh1j hjb ubeh}(h]h ]h"]h$]h&]uh1hhhhMMhhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhNubj)}(hsync_qlen_max - UNSIGNED LONGh]hsync_qlen_max - UNSIGNED LONG}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhhhhubj")}(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&]uh1jhhhMQhj ubah}(h]h ]h"]h$]h&]uh1j!hhhMQhhhhubh)}(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}(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&]uh1jhhhMXhj 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).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMZhj ubeh}(h]h ]h"]h$]h&]uh1j hj 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj ubj )}(hhh](j)}(h default 1h]h default 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hjubj)}(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&]uh1jhhhM`hjubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1hhhhMchj 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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjHubj )}(hhh](j)}(hhh](j)}(h 0 - disabledh]j)}(hjbh]h 0 - disabled}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhj`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&]uh1jhhhMghjwubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMfhjZubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihjZubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMnhjZubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMrhjZubeh}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1hhhhMthj 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj )}(hhh](j)}(h default 0h]h default 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhjubj)}(hBControls the synchronisation of connections when using persistenceh]hBControls the synchronisation of connections when using persistence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhjubj)}(h,0: All types of connections are synchronisedh]h,0: All types of connections are synchronised}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hjubj)}(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&]uh1jhhhM}hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhMhj 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&]uh1hhhhMhj$ubj )}(hhh](j)}(h default 1h]h default 1}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubj)}(hWThe version of the synchronisation protocol used when sending synchronisation messages.h]hWThe version of the synchronisation protocol used when sending synchronisation messages.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubj)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubeh}(h]h ]h"]h$]h&]uh1j hj$ubeh}(h]h ]h"]h$]h&]uh1hhhhMhj 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj )}(hhh](j)}(h&0 - disabled not 0 - enabled (default)h]h&0 - disabled not 0 - enabled (default)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hHIf disabled, the estimation will be suspended and kthread tasks stopped.h]hHIf disabled, the estimation will be suspended and kthread tasks stopped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1hhhhMhj 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_backlinksjfootnote_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_handlerjerror_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}(jjjju nametypes}(jjuh}(jhjhu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages](hsystem_message)}(hhh]j)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]levelKtypeINFOlineKOsourcehuh1jphjubjq)}(hhh]j)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]levelKtypejlineKXsourcehuh1jphj1ubetransform_messages] transformerN include_log] decorationNhhub.