It is also possible to specify the top level parameter compatibility. This directive indicates the level of compatibility requested by the user. The option whitetank can be specified to remain backward compatable with openais-0.80.z. The option none can be specified to only be compatable with corosync-1.Y.Z. Extra processing during configuration changes is required to remain backward compatable.
The default is whitetank. (backwards compatibility)
Within the totem directive, an interface directive is required. There is also one configuration option which is required:
Within the interface sub-directive of totem there are four parameters which are required:
This may also be an IPV6 address, in which case IPV6 networking will be used. In this case, the full address must be specified and there is no automatic selection of the network interface within a specific subnet as with IPv4.
If IPv6 networking is used, the nodeid field must be specified.
This may also be an IPV6 multicast address, in which case IPV6 networking will be used. If IPv6 networking is used, the nodeid field must be specified.
Within the totem directive, there are seven configuration options of which one is required, five are optional, and one is required when IPV6 is configured in the interface subdirective. The required directive controls the version of the totem configuration. The optional option unless using IPV6 directive controls identification of the processor. The optional options control secrecy and authentication, the redundant ring mode of operation, maximum network MTU, and number of sending threads, and the nodeid field.
WARNING: The clusters behavior is undefined if this option is enabled on only a subset of the cluster (for example during a rolling upgrade).
Enabling this option adds a 36 byte header to every message sent by totem which reduces total throughput. Encryption and authentication consume 75% of CPU cycles in aisexec as measured with gprof when enabled.
For 100mbit networks with 1500 MTU frame transmissions: A throughput of 9mb/sec is possible with 100% cpu utilization when this option is enabled on 3ghz cpus. A throughput of 10mb/sec is possible wth 20% cpu utilization when this optin is disabled on 3ghz cpus.
For gig-e networks with large frame transmissions: A throughput of 20mb/sec is possible when this option is enabled on 3ghz cpus. A throughput of 60mb/sec is possible when this option is disabled on 3ghz cpus.
The default is on.
If only one interface directive is specified, none is automatically chosen. If multiple interface directives are specified, only active or passive may be chosen.
Please note while some NICs or switches claim large frame support, they support 9000 MTU as the maximum frame size including the IP header. Setting the netmtu and host MTUs to 9000 will cause totem to use the full 9000 bytes of the frame. Then Linux will add a 18 byte header moving the full frame size to 9018. As a result some hardware will not operate properly with this size of data. A netmtu of 8982 seems to work for the few large frame devices that have been tested. Some manufacturers claim large frame support when in fact they support frame sizes of 4500 bytes.
Increasing the MTU from 1500 to 8982 doubles throughput performance from 30MB/sec to 60MB/sec as measured with evsbench with 175000 byte messages with the secauth directive set to off.
When sending multicast traffic, if the network frequently reconfigures, chances are that some device in the network doesn't support large frames.
Choose hardware carefully if intending to use large frame support.
The default is 1500.
A thread directive of 0 indicates that no threaded send should be used. This mode offers best performance for non-SMP systems.
The default is 0.
The default is ykd. The vsftype can also be set to none.
The default is udp. The transport type can also be set to iba.
Within the totem directive, there are several configuration options which are used to control the operation of the protocol. It is generally not recommended to change any of these values without proper guidance and sufficient testing. Some networks may require larger values if suffering from frequent reconfigurations. Some applications may require faster failure detection times which can be achieved by reducing the token timeout.
The default is 1000 milliseconds.
The default is 238 milliseconds.
The default is 180 milliseconds.
The default is 4 retransmissions.
The default is 50 milliseconds.
The default is 0 milliseconds.
The default is 1200 milliseconds.
The default is 200 milliseconds.
The default is 1000 millseconds.
The default is 50 failures to receive a message.
The default is 30 rotations.
So as a rule of thumb use this mechanism if you require improved failure in low to medium utilized networks.
This constant specifies the number of heartbeat failures the system should tolerate before declaring heartbeat failure e.g 3. Also if this value is not set or is 0 then the heartbeat mechanism is not engaged in the system and token rotation is the method of failure detection
The default is 0 (disabled).
The default is 50 milliseconds.
The default is 50 messages.
The default is 17 messages.
The default is 2000 milliseconds.
A problem is detected whenever all tokens from the proceeding processor have not been received within the rrp_token_expired_timeout. The rrp_problem_count_threshold * rrp_token_expired_timeout should be atleast 50 milliseconds less then the token timeout, or a complete reconfiguration may occur.
The default is 10 problem counts.
This value will automatically be calculated from the token timeout and problem_count_threshold but may be overridden. It is not recommended to override this value without guidance from the corosync community.
The default is 47 milliseconds.
Within the logging directive, there are several configuration options which are all optional.
The following 3 options are valid only for the top level logging directive:
The default is off.
The default is off.
The default is off.
The following options are valid both for top level logging directive and they can be overriden in logger_subsys entries.
The default is syslog and stderr.
Please note, if you are using to_logfile and want to rotate the file, use logrotate(8) with the option copytruncate. eg.
/var/log/corosync.log {
missingok
compress
notifempty
daily
rotate 7
copytruncate
}
No default.
The default is: info.
The default is daemon.
The default is: info.
The default is off.
enter|leave|trace1|trace2|trace3|...
The default is none.
Within the logging directive, logger_subsys directives are optional.
Within the logger_subsys sub-directive, all of the above logging configuration options are valid and can be used to override the default settings. The subsys entry, described below, is mandatory to identify the subsystem.