Created
November 5, 2014 17:08
-
-
Save vincepii/86f60ff4ff912a782a67 to your computer and use it in GitHub Desktop.
Basic corosync two nodes config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please read the openais.conf.5 manual page | |
service { | |
# Load the Pacemaker Cluster Resource Manager | |
ver: 1 | |
name: pacemaker | |
use_mgmtd: yes | |
use_logd: yes | |
} | |
totem { | |
version: 2 | |
# How long before declaring a token lost (ms) | |
token: 5000 | |
# How many token retransmits before forming a new configuration | |
token_retransmits_before_loss_const: 10 | |
# How long to wait for join messages in the membership protocol (ms) | |
join: 1000 | |
# How long to wait for consensus to be achieved before starting a new round of membership configuration (ms) | |
consensus: 7500 | |
# Turn off the virtual synchrony filter | |
vsftype: none | |
# Number of messages that may be sent by one processor on receipt of the token | |
max_messages: 20 | |
# Limit generated nodeids to 31-bits (positive signed integers) | |
clear_node_high_bit: yes | |
# Disable encryption | |
secauth: off | |
# How many threads to use for encryption/decryption | |
threads: 0 | |
# Optionally assign a fixed node id (integer) | |
# nodeid: 1234 | |
# This specifies the mode of redundant ring, which may be none, active, or passive. | |
# rrp_mode: none | |
interface { | |
# The following values need to be set based on your environment | |
member { | |
memberaddr: 10.0.100.2 | |
} | |
member { | |
memberaddr: 10.0.100.3 | |
} | |
ringnumber: 0 | |
bindnetaddr: 10.0.100.0 | |
#mcastaddr: 226.94.1.1 | |
mcastport: 5405 | |
} | |
transport: udpu | |
} | |
nodelist { | |
node { | |
ring0_addr: omni-pcm | |
nodeid: 20 | |
} | |
node { | |
ring0_addr: omni-pcm-2 | |
nodeid: 40 | |
} | |
} | |
amf { | |
mode: disabled | |
} | |
aisexec { | |
user: root | |
group: root | |
} | |
quorum { | |
# Enable and configure quorum subsystem (default: off) | |
# see also corosync.conf.5 and votequorum.5 | |
#provider: corosync_votequorum | |
provider: corosync_votequorum | |
expected_votes: 2 | |
} | |
logging { | |
fileline: off | |
to_stderr: yes | |
to_logfile: yes | |
logfile: /opt/var/log/cluster/corosync.log | |
to_syslog: yes | |
syslog_facility: daemon | |
debug: on | |
timestamp: on | |
logger_subsys { | |
subsys: AMF | |
debug: off | |
tags: enter|leave|trace1|trace2|trace3|trace4|trace6 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment