Kconfig 9.1 KB

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