diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2020-03-18 17:28:57 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-18 15:33:49 -0700 |
commit | 5b37163201bb4b51856ddf67c66839b4fa8581df (patch) | |
tree | 6da3ddad32188a9f35de50947a5eadec18237f75 /meta-networking | |
parent | 530a791fee324b86e7c52410ebb15f1de6b6a431 (diff) | |
download | meta-openembedded-5b37163201bb4b51856ddf67c66839b4fa8581df.tar.gz |
corosync: update corosync.conf to 3.x
Update corosync.conf to make it valid after corosync
upgrades to 3.x.
Reference: https://sources.debian.org/data/main/c/corosync/3.0.3-2/debian/patches/Make-the-example-config-valid.patch
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-extended/corosync/corosync/corosync.conf | 85 |
1 files changed, 44 insertions, 41 deletions
diff --git a/meta-networking/recipes-extended/corosync/corosync/corosync.conf b/meta-networking/recipes-extended/corosync/corosync/corosync.conf index 6aef9de95..744a30ff5 100644 --- a/meta-networking/recipes-extended/corosync/corosync/corosync.conf +++ b/meta-networking/recipes-extended/corosync/corosync/corosync.conf | |||
@@ -1,58 +1,61 @@ | |||
1 | # Starting point for cluster with pacemaker/openais | 1 | # Please read the corosync.conf.5 manual page |
2 | compatibility: none | ||
3 | |||
4 | corosync { | ||
5 | user: root | ||
6 | group: root | ||
7 | } | ||
8 | |||
9 | aisexec { | ||
10 | with Pacemaker | ||
11 | user: root | ||
12 | group: root | ||
13 | } | ||
14 | |||
15 | service { | ||
16 | name: pacemaker | ||
17 | ver: 1 | ||
18 | } | ||
19 | |||
20 | totem { | 2 | totem { |
21 | version: 2 | 3 | version: 2 |
22 | secauth: off | 4 | |
23 | threads: 0 | 5 | # Set name of the cluster |
24 | interface { | 6 | cluster_name: testCluster |
25 | ringnumber: 0 | 7 | |
26 | # Cluster network address | 8 | # crypto_cipher and crypto_hash: Used for mutual node authentication. |
27 | bindnetaddr: 192.168.10.0 | 9 | # If you choose to enable this, then do remember to create a shared |
28 | # Should be fine in most cases, don't forget to allow | 10 | # secret with "corosync-keygen". |
29 | # packets for this address/port in netfilter if there | 11 | # enabling crypto_cipher, requires also enabling of crypto_hash. |
30 | # is restrictive policy set for cluster network | 12 | # crypto works only with knet transport |
31 | mcastaddr: 226.94.1.1 | 13 | crypto_cipher: none |
32 | mcastport: 5405 | 14 | crypto_hash: none |
33 | } | ||
34 | } | 15 | } |
35 | 16 | ||
36 | logging { | 17 | logging { |
18 | # Log the source file and line where messages are being | ||
19 | # generated. When in doubt, leave off. Potentially useful for | ||
20 | # debugging. | ||
37 | fileline: off | 21 | fileline: off |
38 | to_stderr: no | 22 | # Log to standard error. When in doubt, set to yes. Useful when |
23 | # running in the foreground (when invoking "corosync -f") | ||
24 | to_stderr: yes | ||
25 | # Log to a log file. When set to "no", the "logfile" option | ||
26 | # must not be set. | ||
39 | to_logfile: yes | 27 | to_logfile: yes |
40 | to_syslog: yes | ||
41 | logfile: /var/log/cluster/corosync.log | 28 | logfile: /var/log/cluster/corosync.log |
29 | # Log to the system log daemon. When in doubt, set to yes. | ||
30 | to_syslog: yes | ||
31 | # Log debug messages (very verbose). When in doubt, leave off. | ||
42 | debug: off | 32 | debug: off |
43 | timestamp: on | 33 | # Log messages with time stamps. When in doubt, set to hires (or on) |
34 | #timestamp: hires | ||
44 | logger_subsys { | 35 | logger_subsys { |
45 | subsys: AMF | 36 | subsys: QUORUM |
46 | debug: off | 37 | debug: off |
47 | } | 38 | } |
48 | } | 39 | } |
49 | 40 | ||
50 | amf { | ||
51 | mode: disabled | ||
52 | } | ||
53 | |||
54 | quorum { | 41 | quorum { |
55 | # Quorum for the Pacemaker Cluster Resource Manager | 42 | # Enable and configure quorum subsystem (default: off) |
43 | # see also corosync.conf.5 and votequorum.5 | ||
56 | provider: corosync_votequorum | 44 | provider: corosync_votequorum |
57 | expected_votes: 1 | 45 | } |
46 | |||
47 | nodelist { | ||
48 | # Change/uncomment/add node sections to match cluster configuration | ||
49 | |||
50 | node { | ||
51 | # Hostname of the node | ||
52 | name: node1 | ||
53 | # Cluster membership node identifier | ||
54 | nodeid: 1 | ||
55 | # Address of first link | ||
56 | ring0_addr: 127.0.0.1 | ||
57 | # When knet transport is used it's possible to define up to 8 links | ||
58 | #ring1_addr: 192.168.1.1 | ||
59 | } | ||
60 | # ... | ||
58 | } | 61 | } |