4
0

corosync.conf.example 2.8 KB

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