corosync.conf.example 2.3 KB

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