openais.conf.5 13 KB

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