openais.conf.5 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. .\"/*
  2. .\" * Copyright (c) 2005 MontaVista Software, Inc.
  3. .\" * Copyright (c) 2006 RedHat, Inc.
  4. .\" *
  5. .\" * All rights reserved.
  6. .\" *
  7. .\" * Author: Steven Dake (sdake@mvista.com)
  8. .\" *
  9. .\" * This software licensed under BSD license, the text of which follows:
  10. .\" *
  11. .\" * Redistribution and use in source and binary forms, with or without
  12. .\" * modification, are permitted provided that the following conditions are met:
  13. .\" *
  14. .\" * - Redistributions of source code must retain the above copyright notice,
  15. .\" * this list of conditions and the following disclaimer.
  16. .\" * - Redistributions in binary form must reproduce the above copyright notice,
  17. .\" * this list of conditions and the following disclaimer in the documentation
  18. .\" * and/or other materials provided with the distribution.
  19. .\" * - Neither the name of the MontaVista Software, Inc. nor the names of its
  20. .\" * contributors may be used to endorse or promote products derived from this
  21. .\" * software without specific prior written permission.
  22. .\" *
  23. .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  24. .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  27. .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  28. .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29. .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30. .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  31. .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32. .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  33. .\" * THE POSSIBILITY OF SUCH DAMAGE.
  34. .\" */
  35. .TH OPENAIS_CONF 5 2006-03-28 "openais Man Page" "Openais Programmer's Manual"
  36. .SH NAME
  37. openais.conf - openais executive configuration file
  38. .SH SYNOPSIS
  39. /etc/ais/openais.conf
  40. .SH DESCRIPTION
  41. The openais.conf instructs the openais executive about various parameters
  42. needed to control the openais executive. The configuration file consists of
  43. bracketed top level directives. The possible directive choices are
  44. .IR totem { } "," logging { } "," event { } ", and "amf { }. These directives
  45. are described below.
  46. .TP
  47. totem { }
  48. This top level directive contains configuration options for the totem protocol.
  49. .TP
  50. logging { }
  51. This top level directive contains configuration options for logging.
  52. .TP
  53. event { }
  54. This top level directive contains configuration options for the event service.
  55. .TP
  56. amf { }
  57. This top level directive contains configuration options for the AMF service.
  58. .PP
  59. .PP
  60. Within the
  61. .B totem
  62. directive, there are four configuration options which are all required:
  63. .TP
  64. version
  65. This specifies the version of the configuration file. Currently the only
  66. valid version for this directive is 1.
  67. .TP
  68. bindnetaddr
  69. This specifies the address which the openais executive should bind.
  70. This address should always end in zero. If the totem traffic should
  71. be routed over 192.168.5.92, set bindnetaddr to 192.168.5.0.
  72. Multiple bindnetaddr directives may be specified. When multiple bindnetaddr
  73. directives are specified, the totem redundant ring protocol will use multiple
  74. interfaces to replicate the network traffic.
  75. This may also be an IPV6 address, in which case IPV6 networking will be used.
  76. In this case, the full address must be specified and there is no automatic
  77. selection of the network interface within a specific subnet as with IPv4.
  78. If IPv6 networking is used, the nodeid field must be specified.
  79. .TP
  80. mcastaddr
  81. This is the multicast address used by openais executive. The default
  82. should work for most networks, but the network administrator should be queried
  83. about a multicast address to use. Avoid 224.x.x.x because this is a "config"
  84. multicast address.
  85. This may also be an IPV6 multicast address, in which case IPV6 networking
  86. will be used. If IPv6 networking is used, the nodeid field must be specified.
  87. .TP
  88. mcastport
  89. This specifies the UDP port number. It is possible to use the same multicast
  90. address on a network with the openais services configured for different
  91. UDP ports.
  92. .TP
  93. nodeid
  94. This configuration option is optional when using IPv4 and required when using
  95. IPv6. This is a 32 bit value specifying the node identifier delivered to the
  96. cluster membership service. If this is not specified with IPv4, the node id
  97. will be determined from the 32 bit IP address the system is bound to.
  98. The node identifier value of zero is reserved and should not be used.
  99. .PP
  100. Within the
  101. .B totem
  102. directive, there are four configuration options which are all optional.
  103. These control secrecy & authentication, the redundant ring mode of operation,
  104. and network MTU, and number of sending threads.
  105. .TP
  106. secauth
  107. This specifies that HMAC/SHA1 authentication should be used to authenticate
  108. all messages. It further specifies that all data should be encrypted with the
  109. sober128 encryption algorithm to protect data from eavesdropping.
  110. Enabling this option adds a 36 byte header to every message sent by totem which
  111. reduces total throughput. Encryption and authentication consume 75% of CPU
  112. cycles in aisexec as measured with gprof when enabled.
  113. For 100mbit networks with 1500 MTU frame transmissions:
  114. A throughput of 9mb/sec is possible with 100% cpu utilization when this
  115. option is enabled on 3ghz cpus.
  116. A throughput of 10mb/sec is possible wth 20% cpu utilization when this
  117. optin is disabled on 3ghz cpus.
  118. For gig-e networks with large frame transmissions:
  119. A throughput of 20mb/sec is possible when this option is enabled on
  120. 3ghz cpus.
  121. A throughput of 60mb/sec is possible when this option is disabled on
  122. 3ghz cpus.
  123. The default is on.
  124. .TP
  125. redundantring
  126. This specifies the mode of redundant ring, which may be none, active, or
  127. passive. Active replication offers slightly lower latency from transmit
  128. to delivery in faulty network environments but with poorer performance.
  129. Passive replication may nearly double the speed of the totem protocol
  130. if the protocol doesn't become cpu bound. The final option is none, in
  131. which case only one network interface will be used to operate the totem
  132. protocol.
  133. At this time redundant ring is only partially implemented and not yet available.
  134. The default is none.
  135. .TP
  136. netmtu
  137. This specifies the network maximum transmit unit. To set this value beyond
  138. 1500, the regular frame MTU, requires ethernet devices that support large, or
  139. also called jumbo, frames. If any device in the network doesn't support large
  140. frames, the protocol will not operate properly. The hosts must also have their
  141. mtu size set from 1500 to whatever frame size is specified here.
  142. Please note while some NICs or switches claim large frame support, they support
  143. 9000 MTU as the maximum frame size including the IP header. Setting the netmtu
  144. and host MTUs to 9000 will cause totem to use the full 9000 bytes of the frame.
  145. Then Linux will add a 18 byte header moving the full frame size to 9018. As a
  146. result some hardware will not operate properly with this size of data. A netmtu
  147. of 8982 seems to work for the few large frame devices that have been tested.
  148. Some manufacturers claim large frame support when in fact they support frame
  149. sizes of 4500 bytes.
  150. Increasing the MTU from 1500 to 8982 doubles throughput performance from 30MB/sec
  151. to 60MB/sec as measured with evsbench with 175000 byte messages with the secauth
  152. directive set to off.
  153. When sending multicast traffic, if the network frequently reconfigures, chances are
  154. that some device in the network doesn't support large frames.
  155. Choose hardware carefully if intending to use large frame support.
  156. The default is 1500.
  157. .TP
  158. threads
  159. This directive controls how many threads are used to encrypt and send multicast
  160. messages. If secauth is off, the protocol will never use threaded sending.
  161. If secauth is on, this directive allows systems to be configured to use
  162. multiple threads to encrypt and send multicast messages.
  163. A thread directive of 0 indicates that no threaded send should be used. This
  164. mode offers best performance for non-SMP systems.
  165. The default is 0.
  166. Within the
  167. .B totem
  168. directive, there are several configuration options which are used to control
  169. the operation of the protocol. It is generally not recommended to change any
  170. of these values without proper guidance and sufficient testing. Some networks
  171. may require larger values if suffering from frequent reconfigurations. Some
  172. applications may require faster failure detection times which can be achieved
  173. by reducing the token timeout.
  174. .TP
  175. token
  176. This timeout specifies in milliseconds until a token loss is declared after not
  177. receiving a token. This is the time spent detecting a failure of a processor
  178. in the current configuration. Reforming a new configuration takes about 50
  179. milliseconds in addition to this timeout.
  180. .TP
  181. token_retransmit
  182. This timeout specifies in milliseconds after how long before receiving a token
  183. the token is retransmitted. This will be automatically calculated if token
  184. is modified. It is not recommended to alter this value without guidance from
  185. the openais community.
  186. .TP
  187. hold
  188. This timeout specifies in milliseconds how long the token should be held by
  189. the representative when the protocol is under low utilization. It is not
  190. recommended to alter this value without guidance from the openais community.
  191. .TP
  192. retransmits_before_loss
  193. This value identifies how many token retransmits should be attempted before
  194. forming a new configuration. If this value is set, retransmit and hold will
  195. be automatically calculated from retransmits_before_loss and token.
  196. .TP
  197. join
  198. This timeout specifies in milliseconds how long to wait for join messages in
  199. the membership protocol.
  200. .TP
  201. consensus
  202. This timeout specifies in milliseconds how long to wait for consensus to be
  203. achieved before starting a new round of membership configuration.
  204. .TP
  205. merge
  206. This timeout specifies in milliseconds how long to wait before checking for
  207. a partition when no multicast traffic is being sent. If multicast traffic
  208. is being sent, the merge detection happens automatically as a function of
  209. the protocol.
  210. .TP
  211. downcheck
  212. This timeout specifies in milliseconds how long to wait before checking
  213. that a network interface is back up after it has been downed.
  214. .TP
  215. fail_to_recv_const
  216. This constant specifies how many rotations of the token without receiving any
  217. of the messages when messages should be received may occur before a new
  218. configuration is formed.
  219. .TP
  220. seqno_unchanged_const
  221. This constant specifies how many rotations of the token without any multicast
  222. traffic should occur before the merge detection timeout is started.
  223. .TP
  224. heartbeat_failures_allowed
  225. [HeartBeating mechanism]
  226. Configures the optional HeartBeating mechanism for faster failure detection. Keep in
  227. mind that engaging this mechanism in lossy networks could cause faulty loss declaration
  228. as the mechanism relies on the network for heartbeating.
  229. So as a rule of thumb use this mechanism if you require improved failure in low to
  230. medium utilized networks.
  231. This constant specifies the number of heartbeat failures the system should tolerate
  232. before declaring heartbeat failure e.g 3. Also if this value is not set or is 0 then the
  233. heartbeat mechanism is not engaged in the system and token rotation is the method
  234. of failure detection
  235. The default is 0 (disabled).
  236. .TP
  237. max_network_delay
  238. [HeartBeating mechanism]
  239. This constant specifies in milliseconds the approximate delay that your network takes
  240. to transport one packet from one machine to another. This value is to be set by system
  241. engineers and please dont change if not sure as this effects the failure detection
  242. mechanism using heartbeat.
  243. The default is 50 milliseconds.
  244. .TP
  245. window_size
  246. This constant specifies the maximum number of messages that may be sent on one
  247. token rotation. If all processors perform equally well, this value could be
  248. large (300), which would introduce higher latency from origination to delivery
  249. for very large rings. To reduce latency in large rings(16+), the defaults are
  250. a safe compromise. If 1 or more slow processor(s) are present among fast
  251. processors, window_size should be no larger then 256000 / netmtu to avoid
  252. overflow of the kernel receive buffers. The user is notified of this by
  253. the display of a retransmit list in the notification logs. There is no loss
  254. of data, but performance is reduced when these errors occur.
  255. The default is 50 messages.
  256. .TP
  257. max_messages
  258. This constant specifies the maximum number of messages that may be sent by one
  259. processor on receipt of the token. The max_messages parameter is limited to
  260. 256000 / netmtu to prevent overflow of the kernel transmit buffers.
  261. The default is 17 messages.
  262. .PP
  263. Within the
  264. .B logging
  265. directive, there are four configuration options which are all optional:
  266. .TP
  267. logoutput
  268. This specifies the logging output. The choices are file, which logs to a file,
  269. stderr, which logs to stderr, and syslog which logs to the system log. It is
  270. possible to have multiple targets by including this directive with different
  271. options multiple times in the top level directive.
  272. .TP
  273. logfile
  274. If the logoutput: file directive is set, this option specifies where the
  275. log file is written to.
  276. The default is syslog.
  277. .TP
  278. debug
  279. This specifies whether debug output is logged. This is generally a bad idea,
  280. unless there is some specific bug or problem that must be found in the
  281. executive. Set the value to on to debug, off to turn of debugging.
  282. The default is off.
  283. .TP
  284. timestamp
  285. This specifies that a timestamp is placed on all log messages.
  286. .PP
  287. Within the
  288. .B event
  289. directive, there are two configuration options which are all optional:
  290. .TP
  291. delivery_queue_size
  292. This directive describes the full size of the outgoing delivery queue to the
  293. application. If applications are slow to process messages, they will be
  294. delivered event loss messages. By increasing this value, the applications
  295. that are slowly processing messages may have an opportunity to catch up.
  296. .TP
  297. delivery_queue_resume
  298. This directive describes when new events can be accepted by the event service
  299. when the delivery queue count of pending messages has reached this value.
  300. Please note this is not cluster wide.
  301. .PP
  302. Within the
  303. .B amf
  304. directive, there is one configuration option which is optional:
  305. .TP
  306. mode
  307. This can either contain the value enabled or disabled. When enabled, AMF will
  308. instantiate the service groups specified in the /etc/ais/groups.conf file.
  309. The default is disabled.
  310. .SH "FILES"
  311. .TP
  312. /etc/ais/openais.conf
  313. The openais executive configuration file.
  314. .TP
  315. /etc/ais/groups.conf
  316. The openais AMF service groups configuration file.
  317. .SH "SEE ALSO"
  318. .BR openais_overview (8), README.amf
  319. .PP