corosync.conf.example 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # crypto_cipher and crypto_hash: Used for mutual node authentication.
  7. # If you choose to enable this, then do remember to create a shared
  8. # secret with "corosync-keygen".
  9. # enabling crypto_cipher, requires also enabling of crypto_hash.
  10. # crypto works only with knet transport
  11. crypto_cipher: none
  12. crypto_hash: none
  13. }
  14. logging {
  15. # Log the source file and line where messages are being
  16. # generated. When in doubt, leave off. Potentially useful for
  17. # debugging.
  18. fileline: off
  19. # Log to standard error. When in doubt, set to yes. Useful when
  20. # running in the foreground (when invoking "corosync -f")
  21. to_stderr: yes
  22. # Log to a log file. When set to "no", the "logfile" option
  23. # must not be set.
  24. to_logfile: yes
  25. logfile: /var/log/cluster/corosync.log
  26. # Log to the system log daemon. When in doubt, set to yes.
  27. to_syslog: yes
  28. # Log debug messages (very verbose). When in doubt, leave off.
  29. debug: off
  30. # Log messages with time stamps. When in doubt, set to hires (or on)
  31. #timestamp: hires
  32. logger_subsys {
  33. subsys: QUORUM
  34. debug: off
  35. }
  36. }
  37. quorum {
  38. # Enable and configure quorum subsystem (default: off)
  39. # see also corosync.conf.5 and votequorum.5
  40. #provider: corosync_votequorum
  41. }
  42. nodelist {
  43. # Change/uncomment/add node sections to match cluster configuration
  44. node {
  45. # Hostname of the node
  46. name: node1
  47. # Cluster membership node identifier
  48. nodeid: 1
  49. # Address of first link
  50. #ring0_addr: 192.168.0.1
  51. # When knet transport is used it's possible to define up to 8 links
  52. #ring1_addr: 192.168.1.1
  53. }
  54. node {
  55. # Hostname of the node
  56. name: node2
  57. # Cluster membership node identifier
  58. nodeid: 2
  59. # Address of first link
  60. #ring0_addr: 192.168.0.2
  61. # When knet transport is used it's possible to define up to 8 links
  62. #ring1_addr: 192.168.1.2
  63. }
  64. # ...
  65. }