文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>heartbeat注意事项

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:
  1. A line which says which key to use in signing outgoing packets
  2. One or more lines defining how incoming packets might be being signed.
The file must follow the following format:
auth num
num method secret
num method secret
num method secret
...
num 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.

/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.


相关阅读 更多 +
排行榜 更多 +
哥布林弹球b服手游下载

哥布林弹球b服手游下载

休闲益智 下载
小马样式盒游戏下载

小马样式盒游戏下载

休闲益智 下载
异变小镇中文版下载安装

异变小镇中文版下载安装

冒险解谜 下载