Kconfig 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. #
  2. # IP Virtual Server configuration
  3. #
  4. menuconfig IP_VS
  5. tristate "IP virtual server support"
  6. depends on NET && INET && NETFILTER
  7. depends on (NF_CONNTRACK || NF_CONNTRACK=n)
  8. ---help---
  9. IP Virtual Server support will let you build a high-performance
  10. virtual server based on cluster of two or more real servers. This
  11. option must be enabled for at least one of the clustered computers
  12. that will take care of intercepting incoming connections to a
  13. single IP address and scheduling them to real servers.
  14. Three request dispatching techniques are implemented, they are
  15. virtual server via NAT, virtual server via tunneling and virtual
  16. server via direct routing. The several scheduling algorithms can
  17. be used to choose which server the connection is directed to,
  18. thus load balancing can be achieved among the servers. For more
  19. information and its administration program, please visit the
  20. following URL: <http://www.linuxvirtualserver.org/>.
  21. If you want to compile it in kernel, say Y. To compile it as a
  22. module, choose M here. If unsure, say N.
  23. if IP_VS
  24. config IP_VS_IPV6
  25. bool "IPv6 support for IPVS"
  26. depends on IPV6 = y || IP_VS = IPV6
  27. select IP6_NF_IPTABLES
  28. ---help---
  29. Add IPv6 support to IPVS.
  30. Say Y if unsure.
  31. config IP_VS_DEBUG
  32. bool "IP virtual server debugging"
  33. ---help---
  34. Say Y here if you want to get additional messages useful in
  35. debugging the IP virtual server code. You can change the debug
  36. level in /proc/sys/net/ipv4/vs/debug_level
  37. config IP_VS_TAB_BITS
  38. int "IPVS connection table size (the Nth power of 2)"
  39. range 8 20
  40. default 12
  41. ---help---
  42. The IPVS connection hash table uses the chaining scheme to handle
  43. hash collisions. Using a big IPVS connection hash table will greatly
  44. reduce conflicts when there are hundreds of thousands of connections
  45. in the hash table.
  46. Note the table size must be power of 2. The table size will be the
  47. value of 2 to the your input number power. The number to choose is
  48. from 8 to 20, the default number is 12, which means the table size
  49. is 4096. Don't input the number too small, otherwise you will lose
  50. performance on it. You can adapt the table size yourself, according
  51. to your virtual server application. It is good to set the table size
  52. not far less than the number of connections per second multiplying
  53. average lasting time of connection in the table. For example, your
  54. virtual server gets 200 connections per second, the connection lasts
  55. for 200 seconds in average in the connection table, the table size
  56. should be not far less than 200x200, it is good to set the table
  57. size 32768 (2**15).
  58. Another note that each connection occupies 128 bytes effectively and
  59. each hash entry uses 8 bytes, so you can estimate how much memory is
  60. needed for your box.
  61. You can overwrite this number setting conn_tab_bits module parameter
  62. or by appending ip_vs.conn_tab_bits=? to the kernel command line
  63. if IP VS was compiled built-in.
  64. comment "IPVS transport protocol load balancing support"
  65. config IP_VS_PROTO_TCP
  66. bool "TCP load balancing support"
  67. ---help---
  68. This option enables support for load balancing TCP transport
  69. protocol. Say Y if unsure.
  70. config IP_VS_PROTO_UDP
  71. bool "UDP load balancing support"
  72. ---help---
  73. This option enables support for load balancing UDP transport
  74. protocol. Say Y if unsure.
  75. config IP_VS_PROTO_AH_ESP
  76. def_bool IP_VS_PROTO_ESP || IP_VS_PROTO_AH
  77. config IP_VS_PROTO_ESP
  78. bool "ESP load balancing support"
  79. ---help---
  80. This option enables support for load balancing ESP (Encapsulation
  81. Security Payload) transport protocol. Say Y if unsure.
  82. config IP_VS_PROTO_AH
  83. bool "AH load balancing support"
  84. ---help---
  85. This option enables support for load balancing AH (Authentication
  86. Header) transport protocol. Say Y if unsure.
  87. config IP_VS_PROTO_SCTP
  88. bool "SCTP load balancing support"
  89. select LIBCRC32C
  90. ---help---
  91. This option enables support for load balancing SCTP transport
  92. protocol. Say Y if unsure.
  93. comment "IPVS scheduler"
  94. config IP_VS_RR
  95. tristate "round-robin scheduling"
  96. ---help---
  97. The robin-robin scheduling algorithm simply directs network
  98. connections to different real servers in a round-robin manner.
  99. If you want to compile it in kernel, say Y. To compile it as a
  100. module, choose M here. If unsure, say N.
  101. config IP_VS_WRR
  102. tristate "weighted round-robin scheduling"
  103. ---help---
  104. The weighted robin-robin scheduling algorithm directs network
  105. connections to different real servers based on server weights
  106. in a round-robin manner. Servers with higher weights receive
  107. new connections first than those with less weights, and servers
  108. with higher weights get more connections than those with less
  109. weights and servers with equal weights get equal connections.
  110. If you want to compile it in kernel, say Y. To compile it as a
  111. module, choose M here. If unsure, say N.
  112. config IP_VS_LC
  113. tristate "least-connection scheduling"
  114. ---help---
  115. The least-connection scheduling algorithm directs network
  116. connections to the server with the least number of active
  117. connections.
  118. If you want to compile it in kernel, say Y. To compile it as a
  119. module, choose M here. If unsure, say N.
  120. config IP_VS_WLC
  121. tristate "weighted least-connection scheduling"
  122. ---help---
  123. The weighted least-connection scheduling algorithm directs network
  124. connections to the server with the least active connections
  125. normalized by the server weight.
  126. If you want to compile it in kernel, say Y. To compile it as a
  127. module, choose M here. If unsure, say N.
  128. config IP_VS_FO
  129. tristate "weighted failover scheduling"
  130. ---help---
  131. The weighted failover scheduling algorithm directs network
  132. connections to the server with the highest weight that is
  133. currently available.
  134. If you want to compile it in kernel, say Y. To compile it as a
  135. module, choose M here. If unsure, say N.
  136. config IP_VS_OVF
  137. tristate "weighted overflow scheduling"
  138. ---help---
  139. The weighted overflow scheduling algorithm directs network
  140. connections to the server with the highest weight that is
  141. currently available and overflows to the next when active
  142. connections exceed the node's weight.
  143. If you want to compile it in kernel, say Y. To compile it as a
  144. module, choose M here. If unsure, say N.
  145. config IP_VS_LBLC
  146. tristate "locality-based least-connection scheduling"
  147. ---help---
  148. The locality-based least-connection scheduling algorithm is for
  149. destination IP load balancing. It is usually used in cache cluster.
  150. This algorithm usually directs packet destined for an IP address to
  151. its server if the server is alive and under load. If the server is
  152. overloaded (its active connection numbers is larger than its weight)
  153. and there is a server in its half load, then allocate the weighted
  154. least-connection server to this IP address.
  155. If you want to compile it in kernel, say Y. To compile it as a
  156. module, choose M here. If unsure, say N.
  157. config IP_VS_LBLCR
  158. tristate "locality-based least-connection with replication scheduling"
  159. ---help---
  160. The locality-based least-connection with replication scheduling
  161. algorithm is also for destination IP load balancing. It is
  162. usually used in cache cluster. It differs from the LBLC scheduling
  163. as follows: the load balancer maintains mappings from a target
  164. to a set of server nodes that can serve the target. Requests for
  165. a target are assigned to the least-connection node in the target's
  166. server set. If all the node in the server set are over loaded,
  167. it picks up a least-connection node in the cluster and adds it
  168. in the sever set for the target. If the server set has not been
  169. modified for the specified time, the most loaded node is removed
  170. from the server set, in order to avoid high degree of replication.
  171. If you want to compile it in kernel, say Y. To compile it as a
  172. module, choose M here. If unsure, say N.
  173. config IP_VS_DH
  174. tristate "destination hashing scheduling"
  175. ---help---
  176. The destination hashing scheduling algorithm assigns network
  177. connections to the servers through looking up a statically assigned
  178. hash table by their destination IP addresses.
  179. If you want to compile it in kernel, say Y. To compile it as a
  180. module, choose M here. If unsure, say N.
  181. config IP_VS_SH
  182. tristate "source hashing scheduling"
  183. ---help---
  184. The source hashing scheduling algorithm assigns network
  185. connections to the servers through looking up a statically assigned
  186. hash table by their source IP addresses.
  187. If you want to compile it in kernel, say Y. To compile it as a
  188. module, choose M here. If unsure, say N.
  189. config IP_VS_SED
  190. tristate "shortest expected delay scheduling"
  191. ---help---
  192. The shortest expected delay scheduling algorithm assigns network
  193. connections to the server with the shortest expected delay. The
  194. expected delay that the job will experience is (Ci + 1) / Ui if
  195. sent to the ith server, in which Ci is the number of connections
  196. on the ith server and Ui is the fixed service rate (weight)
  197. of the ith server.
  198. If you want to compile it in kernel, say Y. To compile it as a
  199. module, choose M here. If unsure, say N.
  200. config IP_VS_NQ
  201. tristate "never queue scheduling"
  202. ---help---
  203. The never queue scheduling algorithm adopts a two-speed model.
  204. When there is an idle server available, the job will be sent to
  205. the idle server, instead of waiting for a fast one. When there
  206. is no idle server available, the job will be sent to the server
  207. that minimize its expected delay (The Shortest Expected Delay
  208. scheduling algorithm).
  209. If you want to compile it in kernel, say Y. To compile it as a
  210. module, choose M here. If unsure, say N.
  211. comment 'IPVS SH scheduler'
  212. config IP_VS_SH_TAB_BITS
  213. int "IPVS source hashing table size (the Nth power of 2)"
  214. range 4 20
  215. default 8
  216. ---help---
  217. The source hashing scheduler maps source IPs to destinations
  218. stored in a hash table. This table is tiled by each destination
  219. until all slots in the table are filled. When using weights to
  220. allow destinations to receive more connections, the table is
  221. tiled an amount proportional to the weights specified. The table
  222. needs to be large enough to effectively fit all the destinations
  223. multiplied by their respective weights.
  224. comment 'IPVS application helper'
  225. config IP_VS_FTP
  226. tristate "FTP protocol helper"
  227. depends on IP_VS_PROTO_TCP && NF_CONNTRACK && NF_NAT && \
  228. NF_CONNTRACK_FTP
  229. select IP_VS_NFCT
  230. ---help---
  231. FTP is a protocol that transfers IP address and/or port number in
  232. the payload. In the virtual server via Network Address Translation,
  233. the IP address and port number of real servers cannot be sent to
  234. clients in ftp connections directly, so FTP protocol helper is
  235. required for tracking the connection and mangling it back to that of
  236. virtual service.
  237. If you want to compile it in kernel, say Y. To compile it as a
  238. module, choose M here. If unsure, say N.
  239. config IP_VS_NFCT
  240. bool "Netfilter connection tracking"
  241. depends on NF_CONNTRACK
  242. ---help---
  243. The Netfilter connection tracking support allows the IPVS
  244. connection state to be exported to the Netfilter framework
  245. for filtering purposes.
  246. config IP_VS_PE_SIP
  247. tristate "SIP persistence engine"
  248. depends on IP_VS_PROTO_UDP
  249. depends on NF_CONNTRACK_SIP
  250. ---help---
  251. Allow persistence based on the SIP Call-ID
  252. endif # IP_VS