Kconfig 9.3 KB

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