heartbeat注意事项
时间:2010-05-31 来源:jack_sir
cat /etc/ha.d/authkeys
auth nu 对应 1 2 3
auth 3
#1 crc
#2 sha1 HI!
3 md5 Hello!
Two lines are required in the authkeys file:
/etc/ha.d/hs.cf
node The node directive tells what machines are in the cluster. The syntax of the node directive is simple:
auth nu 对应 1 2 3
auth 3
#1 crc
#2 sha1 HI!
3 md5 Hello!
Two lines are required in the authkeys file:
- A line which says which key to use in signing outgoing packets
- One or more lines defining how incoming packets might be being signed.
auth numnum is a numerical identifier, between 1 and 15 inclusive. It must be unique within the file. method is one of the available authentication signature methods (see below for supported methods). secret is an alphanumerical shared secret used to identify cluster nodes to each other. auth num selects the currently active authentication method and secret.
num method secret
num method secret
num method secret
...
/etc/ha.d/hs.cf
node The node directive tells what machines are in the cluster. The syntax of the node directive is simple:
node nodename1 nodename2 ...Node names in the directive must match the "uname -n" of that machine. You can declare multiple node names in one directive. You can also use the directive multiple times. Normally every node in the cluster must be listed in the ha.cf file, including the current node, unless the autojoin directive is enabled. The node directive is not completely authoritative with regard to nodes heartbeat will communicate with. If a node has ever been added in the past, it will tend to remain in the hostcache file more until it's manually removed.
相关阅读 更多 +
排行榜 更多 +