4
0

corosync.conf.example 2.6 KB

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