corosync.conf.example 1.8 KB

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