corosync.conf.5 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. .\"/*
  2. .\" * Copyright (c) 2005 MontaVista Software, Inc.
  3. .\" * Copyright (c) 2006-2012 Red Hat, Inc.
  4. .\" *
  5. .\" * All rights reserved.
  6. .\" *
  7. .\" * Author: Steven Dake (sdake@redhat.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 COROSYNC_CONF 5 2021-08-19 "corosync Man Page" "Corosync Cluster Engine Programmer's Manual"
  36. .SH NAME
  37. corosync.conf - corosync executive configuration file
  38. .SH SYNOPSIS
  39. /etc/corosync/corosync.conf
  40. .SH DESCRIPTION
  41. The corosync.conf instructs the corosync executive about various parameters
  42. needed to control the corosync executive. Empty lines and lines starting with
  43. # character are ignored. The configuration file consists of bracketed top level
  44. directives. The possible directive choices are:
  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. quorum { }
  53. This top level directive contains configuration options for quorum.
  54. .TP
  55. nodelist { }
  56. This top level directive contains configuration options for nodes in cluster.
  57. .TP
  58. qb { }
  59. This top level directive contains configuration options related to libqb.
  60. .TP
  61. resources { }
  62. This top level directive contains configuration options for resources.
  63. .PP
  64. .PP
  65. Within the
  66. .B totem
  67. directive, for UDP transport, an
  68. .B interface
  69. section is required.
  70. .PP
  71. .PP
  72. For UDPU transport, an
  73. .B interface
  74. section is not needed and it is recommended that the
  75. .B nodelist
  76. is used to define cluster nodes.
  77. .PP
  78. .PP
  79. Within the
  80. .B interface
  81. sub-directive of totem there are four parameters which are required. There is
  82. one parameter which is optional.
  83. .TP
  84. ringnumber
  85. This specifies the ring number for the interface. When using the redundant
  86. ring protocol, each interface should specify separate ring numbers to uniquely
  87. identify to the membership protocol which interface to use for which redundant
  88. ring. The ringnumber must start at 0.
  89. .TP
  90. bindnetaddr
  91. This specifies the network address the corosync executive should bind
  92. to.
  93. bindnetaddr should be an IP address configured on the system, or a network
  94. address.
  95. For example, if the local interface is 192.168.5.92 with netmask
  96. 255.255.255.0, you should set bindnetaddr to 192.168.5.92 or 192.168.5.0.
  97. If the local interface is 192.168.5.92 with netmask 255.255.255.192,
  98. set bindnetaddr to 192.168.5.92 or 192.168.5.64, and so forth.
  99. This may also be an IPV6 address, in which case IPV6 networking will be used.
  100. In this case, the exact address must be specified and there is no automatic
  101. selection of the network interface within a specific subnet as with IPv4.
  102. If IPv6 networking is used, the nodeid field in nodelist must be specified.
  103. .TP
  104. broadcast
  105. This is optional and can be set to yes. If it is set to yes, the broadcast
  106. address will be used for communication. If this option is set, mcastaddr
  107. should not be set.
  108. .TP
  109. mcastaddr
  110. This is the multicast address used by corosync executive. The default
  111. should work for most networks, but the network administrator should be queried
  112. about a multicast address to use. Avoid 224.x.x.x because this is a "config"
  113. multicast address.
  114. This may also be an IPV6 multicast address, in which case IPV6 networking
  115. will be used. If IPv6 networking is used, the nodeid field in nodelist must
  116. be specified.
  117. It's not needed to use this option if cluster_name option is used. If both options
  118. are used, mcastaddr has higher priority.
  119. .TP
  120. mcastport
  121. This specifies the UDP port number. It is possible to use the same multicast
  122. address on a network with the corosync services configured for different
  123. UDP ports.
  124. Please note corosync uses two UDP ports mcastport (for mcast receives) and
  125. mcastport - 1 (for mcast sends).
  126. If you have multiple clusters on the same network using the same mcastaddr
  127. please configure the mcastports with a gap.
  128. .TP
  129. ttl
  130. This specifies the Time To Live (TTL). If you run your cluster on a routed
  131. network then the default of "1" will be too small. This option provides
  132. a way to increase this up to 255. The valid range is 0..255.
  133. Note that this is only valid on multicast transport types.
  134. .PP
  135. .PP
  136. Within the
  137. .B totem
  138. directive, there are seven configuration options of which one is required,
  139. five are optional, and one is required when IPV6 is configured in the interface
  140. subdirective. The required directive controls the version of the totem
  141. configuration. The optional option unless using IPV6 directive controls
  142. identification of the processor. The optional options control secrecy and
  143. authentication, the redundant ring mode of operation and maximum network MTU
  144. field.
  145. .TP
  146. version
  147. This specifies the version of the configuration file. Currently the only
  148. valid version for this directive is 2.
  149. .TP
  150. clear_node_high_bit
  151. This configuration option is optional and is only relevant when no nodeid is
  152. specified. Some corosync clients require a signed 32 bit nodeid that is greater
  153. than zero however by default corosync uses all 32 bits of the IPv4 address space
  154. when generating a nodeid. Set this option to yes to force the high bit to be
  155. zero and therefor ensure the nodeid is a positive signed 32 bit integer.
  156. WARNING: The clusters behavior is undefined if this option is enabled on only
  157. a subset of the cluster (for example during a rolling upgrade).
  158. .TP
  159. crypto_hash
  160. This specifies which HMAC authentication should be used to authenticate all
  161. messages. Valid values are none (no authentication), md5, sha1, sha256,
  162. sha384 and sha512.
  163. The default is sha1.
  164. .TP
  165. crypto_cipher
  166. This specifies which cipher should be used to encrypt all messages.
  167. Valid values are none (no encryption), aes256, aes192, aes128 and 3des.
  168. Enabling crypto_cipher, requires also enabling of crypto_hash.
  169. The default is aes256.
  170. .TP
  171. secauth
  172. This specifies that HMAC/SHA1 authentication should be used to authenticate
  173. all messages. It further specifies that all data should be encrypted with the
  174. nss library and aes256 encryption algorithm to protect data from eavesdropping.
  175. Enabling this option adds a encryption header to every message sent by totem which
  176. reduces total throughput. Also encryption and authentication consume extra CPU
  177. cycles in corosync.
  178. The default is on.
  179. WARNING: This parameter is deprecated. It's recommended to use combination of
  180. crypto_cipher and crypto_hash.
  181. .TP
  182. rrp_mode
  183. This specifies the mode of redundant ring, which may be none, active, or
  184. passive. Currently only 'passive' is supported or tested
  185. (using 'active' is not recommended). Active replication offers
  186. slightly lower latency from transmit to delivery in faulty network
  187. environments but with less performance.
  188. Passive replication may nearly double the speed of the totem protocol
  189. if the protocol doesn't become cpu bound. The final option is none, in
  190. which case only one network interface will be used to operate the totem
  191. protocol.
  192. If only one interface directive is specified, none is automatically chosen.
  193. If multiple interface directives are specified, only active or passive may
  194. be chosen.
  195. The maximum number of interface directives that is allowed for either
  196. modes (active or passive) is 2.
  197. When using multiple interfaces, make sure to use different multicast
  198. address/port (port for same address must differ by at least two) pair
  199. for each interface (this is checked by parser) to make rrp works.
  200. .TP
  201. netmtu
  202. This specifies the network maximum transmit unit. To set this value beyond
  203. 1500, the regular frame MTU, requires ethernet devices that support large, or
  204. also called jumbo, frames. If any device in the network doesn't support large
  205. frames, the protocol will not operate properly. The hosts must also have their
  206. mtu size set from 1500 to whatever frame size is specified here.
  207. Please note while some NICs or switches claim large frame support, they support
  208. 9000 MTU as the maximum frame size including the IP header. Setting the netmtu
  209. and host MTUs to 9000 will cause totem to use the full 9000 bytes of the frame.
  210. Then Linux will add a 18 byte header moving the full frame size to 9018. As a
  211. result some hardware will not operate properly with this size of data. A netmtu
  212. of 8982 seems to work for the few large frame devices that have been tested.
  213. Some manufacturers claim large frame support when in fact they support frame
  214. sizes of 4500 bytes.
  215. When sending multicast traffic, if the network frequently reconfigures, chances are
  216. that some device in the network doesn't support large frames.
  217. Choose hardware carefully if intending to use large frame support.
  218. The default is 1500.
  219. .TP
  220. transport
  221. This directive controls the transport mechanism used. If the interface to
  222. which corosync is binding is an RDMA interface such as RoCEE or Infiniband, the
  223. "iba" parameter may be specified. To avoid the use of multicast entirely, a
  224. unicast transport parameter "udpu" can be specified. This requires specifying
  225. the list of members in nodelist directive, that could potentially make up
  226. the membership before deployment.
  227. The default is udp. The transport type can also be set to udpu or iba.
  228. .TP
  229. cluster_name
  230. This specifies the name of cluster and it's used for automatic generating
  231. of multicast address.
  232. .TP
  233. config_version
  234. This specifies version of config file. This is converted to unsigned 64-bit int.
  235. By default it's 0. Option is used to prevent joining old nodes with not
  236. up-to-date configuration. If value is not 0, and node is going for first time
  237. (only for first time, join after split doesn't follow this rules)
  238. from single-node membership to multiple nodes membership, other nodes
  239. config_versions are collected. If current node config_version is not
  240. equal to highest of collected versions, corosync is terminated.
  241. .TP
  242. ip_version
  243. Specifies version of IP to use for communication. Value can be one of
  244. ipv4 or ipv6. Default (if unspecified) is ipv4.
  245. Within the
  246. .B totem
  247. directive, there are several configuration options which are used to control
  248. the operation of the protocol. It is generally not recommended to change any
  249. of these values without proper guidance and sufficient testing. Some networks
  250. may require larger values if suffering from frequent reconfigurations. Some
  251. applications may require faster failure detection times which can be achieved
  252. by reducing the token timeout.
  253. .TP
  254. token
  255. This timeout is used directly or as a base for real token timeout calculation (explained in
  256. .B token_coefficient
  257. section). Token timeout specifies in milliseconds until a token loss is declared after not
  258. receiving a token. This is the time spent detecting a failure of a processor
  259. in the current configuration. Reforming a new configuration takes about 50
  260. milliseconds in addition to this timeout.
  261. For real token timeout used by totem it's possible to read cmap value of
  262. .B runtime.config.totem.token
  263. key.
  264. The default is 1000 milliseconds.
  265. .TP
  266. token_coefficient
  267. This value is used only when
  268. .B nodelist
  269. section is specified and contains at least 3 nodes. If so, real token timeout
  270. is then computed as token + (number_of_nodes - 2) * token_coefficient.
  271. This allows cluster to scale without manually changing token timeout
  272. every time new node is added. This value can be set to 0 resulting
  273. in effective removal of this feature.
  274. The default is 650 milliseconds.
  275. .TP
  276. token_retransmit
  277. This timeout specifies in milliseconds after how long before receiving a token
  278. the token is retransmitted. This will be automatically calculated if token
  279. is modified. It is not recommended to alter this value without guidance from
  280. the corosync community.
  281. The default is 238 milliseconds.
  282. .TP
  283. hold
  284. This timeout specifies in milliseconds how long the token should be held by
  285. the representative when the protocol is under low utilization. It is not
  286. recommended to alter this value without guidance from the corosync community.
  287. The default is 180 milliseconds.
  288. .TP
  289. token_retransmits_before_loss_const
  290. This value identifies how many token retransmits should be attempted before
  291. forming a new configuration. It is also used for token_retransmit
  292. and hold calculations.
  293. The default is 4 retransmissions.
  294. .TP
  295. join
  296. This timeout specifies in milliseconds how long to wait for join messages in
  297. the membership protocol.
  298. The default is 50 milliseconds.
  299. .TP
  300. send_join
  301. This timeout specifies in milliseconds an upper range between 0 and send_join
  302. to wait before sending a join message. For configurations with less than
  303. 32 nodes, this parameter is not necessary. For larger rings, this parameter
  304. is necessary to ensure the NIC is not overflowed with join messages on
  305. formation of a new ring. A reasonable value for large rings (128 nodes) would
  306. be 80msec. Other timer values must also change if this value is changed. Seek
  307. advice from the corosync mailing list if trying to run larger configurations.
  308. The default is 0 milliseconds.
  309. .TP
  310. consensus
  311. This timeout specifies in milliseconds how long to wait for consensus to be
  312. achieved before starting a new round of membership configuration. The minimum
  313. value for consensus must be 1.2 * token. This value will be automatically
  314. calculated at 1.2 * token if the user doesn't specify a consensus value.
  315. For two node clusters, a consensus larger than the join timeout but less than
  316. token is safe. For three node or larger clusters, consensus should be larger
  317. than token. There is an increasing risk of odd membership changes, which still
  318. guarantee virtual synchrony, as node count grows if consensus is less than
  319. token.
  320. The default is 1200 milliseconds.
  321. .TP
  322. merge
  323. This timeout specifies in milliseconds how long to wait before checking for
  324. a partition when no multicast traffic is being sent. If multicast traffic
  325. is being sent, the merge detection happens automatically as a function of
  326. the protocol.
  327. The default is 200 milliseconds.
  328. .TP
  329. downcheck
  330. This timeout specifies in milliseconds how long to wait before checking
  331. that a network interface is back up after it has been downed.
  332. The default is 1000 milliseconds.
  333. .TP
  334. fail_recv_const
  335. This constant specifies how many rotations of the token without receiving any
  336. of the messages when messages should be received may occur before a new
  337. configuration is formed.
  338. The default is 2500 failures to receive a message.
  339. .TP
  340. seqno_unchanged_const
  341. This constant specifies how many rotations of the token without any multicast
  342. traffic should occur before the hold timer is started.
  343. The default is 30 rotations.
  344. .TP
  345. heartbeat_failures_allowed
  346. [HeartBeating mechanism]
  347. Configures the optional HeartBeating mechanism for faster failure detection. Keep in
  348. mind that engaging this mechanism in lossy networks could cause faulty loss declaration
  349. as the mechanism relies on the network for heartbeating.
  350. So as a rule of thumb use this mechanism if you require improved failure in low to
  351. medium utilized networks.
  352. This constant specifies the number of heartbeat failures the system should tolerate
  353. before declaring heartbeat failure e.g 3. Also if this value is not set or is 0 then the
  354. heartbeat mechanism is not engaged in the system and token rotation is the method
  355. of failure detection
  356. The default is 0 (disabled).
  357. .TP
  358. max_network_delay
  359. [HeartBeating mechanism]
  360. This constant specifies in milliseconds the approximate delay that your network takes
  361. to transport one packet from one machine to another. This value is to be set by system
  362. engineers and please don't change if not sure as this effects the failure detection
  363. mechanism using heartbeat.
  364. The default is 50 milliseconds.
  365. .TP
  366. window_size
  367. This constant specifies the maximum number of messages that may be sent on one
  368. token rotation. If all processors perform equally well, this value could be
  369. large (300), which would introduce higher latency from origination to delivery
  370. for very large rings. To reduce latency in large rings(16+), the defaults are
  371. a safe compromise. If 1 or more slow processor(s) are present among fast
  372. processors, window_size should be no larger than 256000 / netmtu to avoid
  373. overflow of the kernel receive buffers. The user is notified of this by
  374. the display of a retransmit list in the notification logs. There is no loss
  375. of data, but performance is reduced when these errors occur.
  376. The default is 50 messages.
  377. .TP
  378. max_messages
  379. This constant specifies the maximum number of messages that may be sent by one
  380. processor on receipt of the token. The max_messages parameter is limited to
  381. 256000 / netmtu to prevent overflow of the kernel transmit buffers.
  382. The default is 17 messages.
  383. .TP
  384. miss_count_const
  385. This constant defines the maximum number of times on receipt of a token
  386. a message is checked for retransmission before a retransmission occurs. This
  387. parameter is useful to modify for switches that delay multicast packets
  388. compared to unicast packets. The default setting works well for nearly all
  389. modern switches.
  390. The default is 5 messages.
  391. .TP
  392. rrp_problem_count_timeout
  393. This specifies the time in milliseconds to wait before decrementing the
  394. problem count by 1 for a particular ring to ensure a link is not marked
  395. faulty for transient network failures.
  396. The default is 2000 milliseconds.
  397. .TP
  398. rrp_problem_count_threshold
  399. This specifies the number of times a problem is detected with a link before
  400. setting the link faulty. Once a link is set faulty, no more data is
  401. transmitted upon it. Also, the problem counter is no longer decremented when
  402. the problem count timeout expires.
  403. A problem is detected whenever all tokens from the proceeding processor have
  404. not been received within the rrp_token_expired_timeout. The
  405. rrp_problem_count_threshold * rrp_token_expired_timeout should be atleast 50
  406. milliseconds less then the token timeout, or a complete reconfiguration
  407. may occur.
  408. The default is 10 problem counts.
  409. .TP
  410. rrp_problem_count_mcast_threshold
  411. This specifies the number of times a problem is detected with multicast before
  412. setting the link faulty for passive rrp mode. This variable is unused in active
  413. rrp mode.
  414. The default is 10 times rrp_problem_count_threshold.
  415. .TP
  416. rrp_token_expired_timeout
  417. This specifies the time in milliseconds to increment the problem counter for
  418. the redundant ring protocol after not having received a token from all rings
  419. for a particular processor.
  420. This value will automatically be calculated from the token timeout and
  421. problem_count_threshold but may be overridden. It is not recommended to
  422. override this value without guidance from the corosync community.
  423. The default is 47 milliseconds.
  424. .TP
  425. rrp_autorecovery_check_timeout
  426. This specifies the time in milliseconds to check if the failed ring can be
  427. auto-recovered.
  428. The default is 1000 milliseconds.
  429. .TP
  430. block_unlisted_ips
  431. Allow UDPU to drop packets from IP addresses that are not known
  432. (nodes which don't exist in the nodelist) to corosync.
  433. Value is yes or no.
  434. This feature is mainly to protect against the joining of nodes
  435. with outdated configurations after a cluster split.
  436. Another use case is to allow the atomic merge of two independent clusters.
  437. Changing the default value is not recommended, the overhead is tiny and
  438. an existing cluster may fail if corosync is started on an unlisted node
  439. with an old configuration.
  440. The default value is yes.
  441. .TP
  442. cancel_token_hold_on_retransmit
  443. Allows Corosync to hold token by representative when there is too much
  444. retransmit messages. This allows network to process increased load without
  445. overloading it. Used mechanism is same as described for
  446. .B hold
  447. directive.
  448. Some deployments may prefer to never hold token when there is
  449. retransmit messages. If so, option should be set to yes.
  450. The default value is no.
  451. .PP
  452. Within the
  453. .B logging
  454. directive, there are several configuration options which are all optional.
  455. .PP
  456. The following 3 options are valid only for the top level logging directive:
  457. .TP
  458. timestamp
  459. This specifies that a timestamp is placed on all log messages.
  460. The default is off.
  461. .TP
  462. fileline
  463. This specifies that file and line should be printed.
  464. The default is off.
  465. .TP
  466. function_name
  467. This specifies that the code function name should be printed.
  468. The default is off.
  469. .TP
  470. blackbox
  471. This specifies that blackbox functionality should be enabled.
  472. The default is on.
  473. .PP
  474. The following options are valid both for top level logging directive
  475. and they can be overridden in logger_subsys entries.
  476. .TP
  477. to_stderr
  478. .TP
  479. to_logfile
  480. .TP
  481. to_syslog
  482. These specify the destination of logging output. Any combination of
  483. these options may be specified. Valid options are
  484. .B yes
  485. and
  486. .B no.
  487. The default is syslog and stderr.
  488. Please note, if you are using to_logfile and want to rotate the file, use logrotate(8)
  489. with the option
  490. .B
  491. copytruncate.
  492. eg.
  493. .ne 18
  494. .RS
  495. .nf
  496. .ft CW
  497. /var/log/corosync.log {
  498. missingok
  499. compress
  500. notifempty
  501. daily
  502. rotate 7
  503. copytruncate
  504. }
  505. .ft
  506. .fi
  507. .RE
  508. .TP
  509. logfile
  510. If the
  511. .B to_logfile
  512. directive is set to
  513. .B yes
  514. , this option specifies the pathname of the log file.
  515. No default.
  516. .TP
  517. logfile_priority
  518. This specifies the logfile priority for this particular subsystem. Ignored if debug is on.
  519. Possible values are: alert, crit, debug (same as debug = on), emerg, err, info, notice, warning.
  520. The default is: info.
  521. .TP
  522. syslog_facility
  523. This specifies the syslog facility type that will be used for any messages
  524. sent to syslog. options are daemon, local0, local1, local2, local3, local4,
  525. local5, local6 & local7.
  526. The default is daemon.
  527. .TP
  528. syslog_priority
  529. This specifies the syslog level for this particular subsystem. Ignored if debug is on.
  530. Possible values are: alert, crit, debug (same as debug = on), emerg, err, info, notice, warning.
  531. The default is: info.
  532. .TP
  533. debug
  534. This specifies whether debug output is logged for this particular logger. Also can contain
  535. value trace, what is highest level of debug information.
  536. The default is off.
  537. .PP
  538. Within the
  539. .B logging
  540. directive, logger_subsys directives are optional.
  541. .PP
  542. Within the
  543. .B logger_subsys
  544. sub-directive, all of the above logging configuration options are valid and
  545. can be used to override the default settings.
  546. The subsys entry, described below, is mandatory to identify the subsystem.
  547. .TP
  548. subsys
  549. This specifies the subsystem identity (name) for which logging is specified. This is the
  550. name used by a service in the log_init() call. E.g. 'CPG'. This directive is
  551. required.
  552. .PP
  553. Within the
  554. .B quorum
  555. directive it is possible to specify the quorum algorithm to use with the
  556. .TP
  557. provider
  558. directive. At the time of writing only corosync_votequorum is supported.
  559. See votequorum(5) for configuration options.
  560. .PP
  561. Within the
  562. .B nodelist
  563. directive it is possible to specify specific information about nodes in cluster. Directive
  564. can contain only
  565. .B node
  566. sub-directive, which specifies every node that should be a member of the membership, and where
  567. non-default options are needed. Every node must have at least ring0_addr field filled.
  568. For UDPU, every node that should be a member of the membership must be specified.
  569. Possible options are:
  570. .TP
  571. ringX_addr
  572. This specifies IP address of one of the nodes. X is ring number.
  573. .TP
  574. nodeid
  575. This configuration option is optional when using IPv4 and required when using
  576. IPv6. This is a 32 bit value specifying the node identifier delivered to the
  577. cluster membership service. If this is not specified with IPv4, the node id
  578. will be determined from the 32 bit IP address the system to which the system
  579. is bound with ring identifier of 0. The node identifier value of zero is
  580. reserved and should not be used.
  581. .TP
  582. name
  583. This optional configuration option provides a unified way for the
  584. client software (e.g. pacemaker) atop, respectively the end users,
  585. to guide establishing a nominal (self-)identification for each node
  586. in case neither respective
  587. .B ringX_addr
  588. specifies a network hostname nor other means are available/effective
  589. in this process. Option is not used by Corosync itself.
  590. .PP
  591. Within the
  592. .B qb
  593. directive it is possible to specify options for libqb.
  594. Possible option is:
  595. .TP
  596. ipc_type
  597. This specifies type of IPC to use. Can be one of native (default), shm and socket.
  598. Native means one of shm or socket, depending on what is supported by OS. On systems
  599. with support for both, SHM is selected. SHM is generally faster, but need to allocate
  600. ring buffer file in /dev/shm.
  601. .PP
  602. Within the
  603. .B resources
  604. directive it is possible to specify options for resources.
  605. Possible option is:
  606. .TP
  607. watchdog_device
  608. (Valid only if Corosync was compiled with watchdog support.)
  609. .br
  610. Watchdog device to use.
  611. The default value is /dev/watchdog.
  612. The special value "off" disables watchdog usage.
  613. .IP
  614. In a cluster with properly configured power fencing a watchdog
  615. provides no additional value. On the other hand, slow watchdog
  616. communication may incur multi-second delays in the Corosync main loop,
  617. potentially breaking down membership. IPMI watchdogs are particularly
  618. notorious in this regard: read about kipmid_max_busy_us in IPMI.txt in
  619. the Linux kernel documentation.
  620. .SH "FILES"
  621. .TP
  622. /etc/corosync/corosync.conf
  623. The corosync executive configuration file.
  624. .SH "SEE ALSO"
  625. .BR corosync_overview (8),
  626. .BR votequorum (5),
  627. .BR corosync-qdevice (8),
  628. .BR logrotate (8)
  629. .PP