openais.conf.5 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 { } " and " logging { } ". These directives are described below.
  44. .TP
  45. totem { }
  46. This top level directive contains configuration options for the totem protocol.
  47. .TP
  48. logging { }
  49. This top level directive contains configuration options for logging.
  50. .PP
  51. .PP
  52. Within the
  53. .B totem
  54. directive, there are four configuration options which are all required:
  55. .TP
  56. version
  57. This specifies the version of the configuration file. Currently the only
  58. valid version for this directive is 1.
  59. .TP
  60. bindnetaddr
  61. This specifies the address which the openais executive should bind.
  62. This address should always end in zero. If the totem traffic should
  63. be routed over 192.168.5.92, set bindnetaddr to 192.168.5.0.
  64. Multiple bindnetaddr directives may be specified. When multiple bindnetaddr
  65. directives are specified, the totem redundant ring protocol will use multiple
  66. interfaces to replicate the network traffic.
  67. .TP
  68. mcastaddr
  69. This is the multicast address used by openais executive. The default
  70. should work for most networks, but the network administrator should be queried
  71. about a multicast address to use. Avoid 224.x.x.x because this is a "config"
  72. multicast address.
  73. .TP
  74. mcastport
  75. This specifies the UDP port number. It is possible to use the same multicast
  76. address on a network with the openais services configured for different
  77. UDP ports.
  78. .PP
  79. Within the
  80. .B totem
  81. directive, there are four configuration options which are all optional.
  82. These control secrecy & authentication, the redundant ring mode of operation,
  83. and network MTU, and number of sending threads.
  84. .TP
  85. secauth
  86. This specifies that HMAC/SHA1 authentication should be used to authenticate
  87. all messages. It further specifies that all data should be encrypted with the
  88. sober128 encryption algorithm to protect data from eavesdropping.
  89. Enabling this option adds a 36 byte header to every message sent by totem which
  90. reduces total throughput. Encryption and authentication consume 75% of CPU
  91. cycles in aisexec as measured with gprof when enabled.
  92. For 100mbit networks with 1500 MTU frame transmissions:
  93. A throughput of 9mb/sec is possible with 100% cpu utilization when this
  94. option is enabled on 3ghz cpus.
  95. A throughput of 10mb/sec is possible wth 20% cpu utilization when this
  96. optin is disabled on 3ghz cpus.
  97. For gig-e networks with large frame transmissions:
  98. A throughput of 20mb/sec is possible when this option is enabled on
  99. 3ghz cpus.
  100. A throughput of 60mb/sec is possible when this option is disabled on
  101. 3ghz cpus.
  102. The default is on.
  103. .TP
  104. redundantring
  105. This specifies the mode of redundant ring, which may be none, active, or
  106. passive. Active replication offers slightly lower latency from transmit
  107. to delivery in faulty network environments but with poorer performance.
  108. Passive replication may nearly double the speed of the totem protocol
  109. if the protocol doesn't become cpu bound. The final option is none, in
  110. which case only one network interface will be used to operate the totem
  111. protocol.
  112. At this time redundant ring is only partially implemented and not yet available.
  113. The default is none.
  114. .TP
  115. netmtu
  116. This specifies the network maximum transmit unit. To set this value beyond
  117. 1500, the regular frame MTU, requires ethernet devices that support large, or
  118. also called jumbo, frames. If any device in the network doesn't support large
  119. frames, the protocol will not operate properly. The hosts must also have their
  120. mtu size set from 1500 to whatever frame size is specified here.
  121. Please note while some NICs or switches claim large frame support, they support
  122. 9000 MTU as the maximum frame size including the IP header. Setting the netmtu
  123. and host MTUs to 9000 will cause totem to use the full 9000 bytes of frame room.
  124. Then Linux will add a 18 byte header moving the full frame size to 9018. As a
  125. result some hardware will not operate properly with this size of data. A netmtu
  126. of 8982 seems to work for the few large frame devices that have been tested.
  127. Some manufacturers claim large frame support when in fact they support frame
  128. sizes of 4500 bytes.
  129. Increasing the MTU from 1500 to 8982 doubles throughput performance from 30MB/sec
  130. to 60MB/sec as measured with evsbench with 175000 byte messages with the secauth
  131. directive set to off.
  132. When sending multicast traffic, if the network frequently reconfigures, chances are
  133. that some device in the network doesn't support large frames.
  134. Choose hardware carefully if intending to use large frame support.
  135. The default is 1500.
  136. .TP
  137. threads
  138. This directive controls how many threads are used to encrypt and send multicast
  139. messages. If secauth is off, the protocol will never use threaded sending.
  140. If secauth is on, this directive allows systems to be configured to use
  141. multiple threads to encrypt and send multicast messages.
  142. A thread directive of 0 indicates that no threaded send should be used. This
  143. mode offers best performance for non-SMP systems.
  144. The default is 0.
  145. Within the
  146. .B totem
  147. directive, there are several configuration options which are used to control
  148. the operation of the protocol. It is generally not recommended to change any
  149. of these values without proper guidance and sufficient testing. Some networks
  150. may require larger values if suffering from frequent reconfigurations. Some
  151. applications may require faster failure detection times which can be achieved
  152. by reducing the token timeout.
  153. .TP
  154. token
  155. This timeout specifies in milliseconds until a token loss is declared after not
  156. receiving a token. This is the time spent detecting a failure of a processor
  157. in the current configuration. Reforming a new configuration takes about 50
  158. milliseconds and is independent of this timeout.
  159. .TP
  160. token_retransmit
  161. This timeout specifies in milliseconds after how long before receiving a token
  162. the token is retransmitted. This will be automatically calculated if token
  163. is modified. It is not recommended to alter this value without guidance from
  164. the openais community.
  165. .TP
  166. hold
  167. This timeout specifies in milliseconds how long the token should be held by
  168. the representative when the protocol is under low utilization. It is not
  169. recommended to alter this value without guidance from the openais community.
  170. .TP
  171. retransmits_before_loss
  172. This value identifies how many token retransmits should be attempted before
  173. forming a new configuration. If this value is set, retransmit and hold will
  174. be automatically calculated from retransmits_before_loss and token.
  175. .TP
  176. join
  177. This timeout specifies in milliseconds how long to wait for join messages in
  178. the membership protocol.
  179. .TP
  180. consensus
  181. This timeout specifies in milliseconds how long to wait for consensus to be
  182. achieved before starting a new round of membership configuration.
  183. .TP
  184. merge
  185. This timeout specifies in milliseconds how long to wait before checking for
  186. a partition when no multicast traffic is being sent. If multicast traffic
  187. is being sent, the merge detection happens automatically as a function of
  188. the protocol.
  189. .TP
  190. downcheck
  191. This timeout specifies in milliseconds how long to wait before checking
  192. that a network interface is back up after it has been downed.
  193. .TP
  194. fail_to_recv_const
  195. This constant specifies how many rotations of the token without receiving any
  196. of the messages when messages should be received may occur before a new
  197. configuration is formed.
  198. .TP
  199. seqno_unchanged_const
  200. This constant specifies how many rotations of the token without any multicast
  201. traffic should occur before the merge detection timeout is started.
  202. .PP
  203. Within the
  204. .B logging
  205. directive, there are four configuration options which are all optional:
  206. .TP
  207. logoutput
  208. This specifies the logging output. The choices are file, which logs to a file,
  209. stderr, which logs to stderr, and syslog which logs to the system log. It is
  210. possible to have multiple targets by including this directive with different
  211. options multiple times in the top level directive.
  212. .TP
  213. logfile
  214. If the logoutput: file directive is set, this option specifies where the
  215. log file is written to.
  216. .TP
  217. debug
  218. This specifies whether debug output is logged. This is generally a bad idea,
  219. unless there is some specific bug or problem that must be found in the
  220. executive. Set the value to on to debug, off to turn of debugging.
  221. .TP
  222. timestamp
  223. This specifies that a timestamp is placed on all log messages.
  224. .SH "FILES"
  225. .TP
  226. /etc/ais/openais.conf
  227. The openais executive configuration file.
  228. .SH "SEE ALSO"
  229. .BR openais_overview (8)
  230. .PP