# Please read the corosync.conf.5 manual page
totem {
	version: 2

	cluster_name: my_cluster
	transport: udpu

	crypto_hash: sha256
	#crypto_hash: none
	crypto_cipher: none

	# Redundant Ring Protocol
	# Active:  both rings will be active, in use.
	# Passive: only one of the two rings is in use, the second one will be used only if the first one fails.
	rrp_mode: passive
}

logging {
	# Log the source file and line where messages are being
	# generated. When in doubt, leave off. Potentially useful for
	# debugging.
	fileline: off
	# Log to standard error. When in doubt, set to no. Useful when
	# running in the foreground (when invoking "corosync -f")
	to_stderr: no
	# Log to a log file. When set to "no", the "logfile" option
	# must not be set.
	to_logfile: yes
	logfile: /var/log/cluster/corosync.log
	logfile_priority: err
	# Log to the system log daemon. When in doubt, set to yes.
	to_syslog: yes
	syslog_priority: err
	# Log debug messages (very verbose). When in doubt, leave off.
	debug: off
	# Log messages with time stamps. When in doubt, set to on
	# (unless you are only logging to syslog, where double
	# timestamps can be annoying).
	timestamp: on
	logger_subsys {
		subsys: QUORUM
		debug: off
	}
}

quorum {
	# Enable and configure quorum subsystem (default: off)
	# see also corosync.conf.5 and votequorum.5
	provider: corosync_votequorum
}

nodelist {
	node {
		name: node-0
		nodeid: 1
		ring0_addr: 169.254.0.2
	}

	node {
		name: node-1
		nodeid: 2
		ring0_addr: 169.254.0.3
	}
}
