corosync.conf.example 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Please read the corosync.conf.5 manual page
  2. totem {
  3. version: 2
  4. # Set name of the cluster
  5. cluster_name: ExampleCluster
  6. }
  7. logging {
  8. # Log the source file and line where messages are being
  9. # generated. When in doubt, leave off. Potentially useful for
  10. # debugging.
  11. fileline: off
  12. # Log to standard error. When in doubt, set to yes. Useful when
  13. # running in the foreground (when invoking "corosync -f")
  14. to_stderr: yes
  15. # Log to a log file. When set to "no", the "logfile" option
  16. # must not be set.
  17. to_logfile: yes
  18. logfile: /var/log/cluster/corosync.log
  19. # Log to the system log daemon. When in doubt, set to yes.
  20. to_syslog: yes
  21. # Log debug messages (very verbose). When in doubt, leave off.
  22. debug: off
  23. # Log messages with time stamps. When in doubt, set to hires (or on)
  24. #timestamp: hires
  25. logger_subsys {
  26. subsys: QUORUM
  27. debug: off
  28. }
  29. }
  30. quorum {
  31. # Enable and configure quorum subsystem (default: off)
  32. # see also corosync.conf.5 and votequorum.5
  33. #provider: corosync_votequorum
  34. }
  35. nodelist {
  36. # Change/uncomment/add node sections to match cluster configuration
  37. node {
  38. # Hostname of the node
  39. name: node1
  40. # Cluster membership node identifier
  41. nodeid: 1
  42. # Address of first link
  43. #ring0_addr: 192.168.0.1
  44. # When knet transport is used it's possible to define up to 8 links
  45. #ring1_addr: 192.168.1.1
  46. }
  47. node {
  48. # Hostname of the node
  49. name: node2
  50. # Cluster membership node identifier
  51. nodeid: 2
  52. # Address of first link
  53. #ring0_addr: 192.168.0.2
  54. # When knet transport is used it's possible to define up to 8 links
  55. #ring1_addr: 192.168.1.2
  56. }
  57. # ...
  58. }