4
0

corosync.xml.example 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0"?>
  2. <!--
  3. Please read the corosync.xml.5 and corosync.conf.5 manual page
  4. -->
  5. <corosync>
  6. <!--
  7. totem tag configures behavior of totem and interfaces.
  8. crypto_cipher and crypto_hash:
  9. Used for mutual node authentication. If you choose to
  10. enable this, then do remember to create a shared
  11. secret with "corosync-keygen".
  12. enabling crypto_cipher, requires also enabling of crypto_hash.
  13. -->
  14. <totem version="2" crypto_cipher="none" crypto_hash="none">
  15. <!--
  16. interface tag to define at least one interface to communicate
  17. over. If you define more than one interface stanza, you must
  18. also set rrp_mode.
  19. Main parameters:
  20. ringnumber:
  21. Rings must be consecutively numbered, starting at 0.
  22. bindnetaddr:
  23. This is normally the *network* address of the
  24. interface to bind to. This ensures that you can use
  25. identical instances of this configuration file
  26. across all your cluster nodes, without having to
  27. modify this option.
  28. However, if you have multiple physical network
  29. interfaces configured for the same subnet, then the
  30. network address alone is not sufficient to identify
  31. the interface Corosync should bind to. In that case,
  32. configure the *host* address of the interface
  33. instead: bindnetaddr="192.168.1.1"
  34. mcastaddr:
  35. When selecting a multicast address, consider RFC
  36. 2365 (which, among other things, specifies that
  37. 239.255.x.x addresses are left to the discretion of
  38. the network administrator). Do not reuse multicast
  39. addresses across multiple Corosync clusters sharing
  40. the same network.
  41. mcastport:
  42. Corosync uses the port you specify here for UDP
  43. messaging, and also the immediately preceding
  44. port. Thus if you set this to 5405, Corosync send
  45. messages over UDP ports 5405 and 5404.
  46. ttl:
  47. Time-to-live for cluster communication packets. The
  48. number of hops (routers) that this ring will allow
  49. itself to pass. Note that multicast routing must be
  50. specifically enabled on most network routers.
  51. -->
  52. <interface ringnumber="0" bindnetaddr="192.168.1.0" mcastaddr="239.255.1.1"
  53. mcastport="5405" ttl="1" />
  54. </totem>
  55. <!--
  56. Logging tag for defining various logging options
  57. Main parameters:
  58. fileline:
  59. Log the source file and line where messages are being
  60. generated. When in doubt, leave off. Potentially useful for
  61. debugging.
  62. to_stderr:
  63. Log to standard error. When in doubt, set to no. Useful when
  64. running in the foreground (when invoking "corosync -f")
  65. to_logfile:
  66. logfile:
  67. Log to a log file. When set to "no", the "logfile" option
  68. must not be set.
  69. to_syslog:
  70. Log to the system log daemon. When in doubt, set to yes.
  71. debug:
  72. Log debug messages (very verbose). When in doubt, leave off.
  73. timestamp:
  74. Log messages with time stamps. When in doubt, set to on
  75. (unless you are only logging to syslog, where double
  76. timestamps can be annoying).
  77. -->
  78. <logging fileline="off" to_stderr="no" to_logfile="yes"
  79. logfile="/var/log/cluster/corosync.log" to_syslog="yes" debug="off"
  80. timestamp="on">
  81. <!--
  82. Logger susys tag is used to overwrite default settings for given
  83. subsys if needed.
  84. -->
  85. <logger_subsys subsys="QUORUM" debug="off" />
  86. </logging>
  87. </corosync>