Kconfig 8.8 KB

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