corosync.conf.example 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Please read the corosync.conf.5 manual page
  2. totem {
  3. version: 2
  4. # cypto_cipher and crypto_hash: Used for mutual node authentication.
  5. # If you choose to enable this, then do remember to create a shared
  6. # secret with "corosync-keygen".
  7. crypto_cipher: none
  8. crypto_hash: none
  9. # interface: define at least one interface to communicate
  10. # over. If you define more than one interface stanza, you must
  11. # also set rrp_mode.
  12. interface {
  13. # Rings must be consecutively numbered, starting at 0.
  14. ringnumber: 0
  15. # This is normally the *network* address of the
  16. # interface to bind to. This ensures that you can use
  17. # identical instances of this configuration file
  18. # across all your cluster nodes, without having to
  19. # modify this option.
  20. bindnetaddr: 192.168.1.0
  21. # However, if you have multiple physical network
  22. # interfaces configured for the same subnet, then the
  23. # network address alone is not sufficient to identify
  24. # the interface Corosync should bind to. In that case,
  25. # configure the *host* address of the interface
  26. # instead:
  27. # bindnetaddr: 192.168.1.1
  28. # When selecting a multicast address, consider RFC
  29. # 2365 (which, among other things, specifies that
  30. # 239.255.x.x addresses are left to the discretion of
  31. # the network administrator). Do not reuse multicast
  32. # addresses across multiple Corosync clusters sharing
  33. # the same network.
  34. mcastaddr: 239.255.1.1
  35. # Corosync uses the port you specify here for UDP
  36. # messaging, and also the immediately preceding
  37. # port. Thus if you set this to 5405, Corosync sends
  38. # messages over UDP ports 5405 and 5404.
  39. mcastport: 5405
  40. # Time-to-live for cluster communication packets. The
  41. # number of hops (routers) that this ring will allow
  42. # itself to pass. Note that multicast routing must be
  43. # specifically enabled on most network routers.
  44. ttl: 1
  45. }
  46. }
  47. logging {
  48. # Log the source file and line where messages are being
  49. # generated. When in doubt, leave off. Potentially useful for
  50. # debugging.
  51. fileline: off
  52. # Log to standard error. When in doubt, set to no. Useful when
  53. # running in the foreground (when invoking "corosync -f")
  54. to_stderr: no
  55. # Log to a log file. When set to "no", the "logfile" option
  56. # must not be set.
  57. to_logfile: yes
  58. logfile: /var/log/cluster/corosync.log
  59. # Log to the system log daemon. When in doubt, set to yes.
  60. to_syslog: yes
  61. # Log debug messages (very verbose). When in doubt, leave off.
  62. debug: off
  63. # Log messages with time stamps. When in doubt, set to on
  64. # (unless you are only logging to syslog, where double
  65. # timestamps can be annoying).
  66. timestamp: on
  67. logger_subsys {
  68. subsys: QUORUM
  69. debug: off
  70. }
  71. }
  72. quorum {
  73. # Enable and configure quorum subsystem (default: off)
  74. # see also corosync.conf.5 and votequorum.5
  75. #provider: corosync_votequorum
  76. }