
The autojoin directive enables nodes to join automatically just by communicating with the cluster, hence not requiring node[1] directives in the ha.cf[2] file. Since our communication is normally strongly authenticated, only nodes which know the cluster key can join (automatically or otherwise).
The general syntax of the autojoin directive is:
autojoin (none|other|any)
All legal autojoin directives are shown below:
autojoin none autojoin other autojoin any
The values you can give for the autojoin directive have the following meanings:
none: disables automatic joining.
other: allows nodes other than ourself who are not listed in ha.cf to join automatically. In other words, our node has to be listed in ha.cf[2], but other nodes do not.
any: allows any node to join automatically without being listed in ha.cf[2], even the current node.
Note that the set of nodes currently considered part of the cluster is kept in the hostcache[3] file.
With autojoin enabled, the node[1] directive is no longer authoritative - the hostcache[3] file is.
| [1] | http://www.linux-ha.org/ha.cf/NodeDirective |
| [2] | http://www.linux-ha.org/ha.cf |
| [3] | http://www.linux-ha.org/HostcacheFile |
This information provided courtesy of the Linux-HA project at http://linux-ha.org/