On this page
Apache 模块 mod_heartmonitor
Description: | mod_heartbeat 原始服务器的集中监控器 |
---|---|
Status: | Experimental |
Module Identifier: | heartmonitor_module |
Source File: | mod_heartmonitor.c |
Compatibility: | 在 Apache 2.3 和更高版本中可用 |
Summary
mod_heartmonitor侦听由mod_heartbeat个启用的原始服务器生成的服务器状态消息,并将它们的状态提供给mod_lbmethod_heartbeat。这使ProxyPass可以使用ProxyPass内部的“心跳” * lbmethod *。
如果可用,此模块将使用mod_slotmem_shm的服务代替平面文件存储。无需配置即可使用mod_slotmem_shm。
Warning
要使用mod_heartmonitor,mod_status和mod_watchdog必须是静态模块,或者,如果是动态模块,则必须在mod_heartmonitor之前加载。
HeartbeatListen Directive
Description: | 多播地址以侦听传入的心跳请求 |
---|---|
Syntax: | HeartbeatListen addr:port |
Default: | disabled |
Context: | server config |
Status: | Experimental |
Module: | mod_heartmonitor |
HeartbeatListen
指令指定服务器将在其上侦听来自启用mod_heartbeat的服务器的状态信息的多播地址。该地址通常将与原始服务器上已配置的HeartbeatAddress相对应。
HeartbeatListen 239.0.0.1:27999
在使用该指令之前,该模块是无效的。
HeartbeatMaxServers Directive
Description: | 指定将向此服务器发送心跳请求的服务器的最大数量 |
---|---|
Syntax: | HeartbeatMaxServers number-of-servers |
Default: | HeartbeatMaxServers 10 |
Context: | server config |
Status: | Experimental |
Module: | mod_heartmonitor |
HeartbeatMaxServers
指令指定将请求发送到此监视服务器的服务器的最大数量。当使用mod_slotmem_shm时,它用于控制分配用于存储心跳信息的共享内存的大小。
HeartbeatStorage Directive
Description: | 存储心跳数据的路径 |
---|---|
Syntax: | HeartbeatStorage file-path |
Default: | HeartbeatStorage logs/hb.dat |
Context: | server config |
Status: | Experimental |
Module: | mod_heartmonitor |
HeartbeatStorage
指令指定存储心跳数据的路径。仅当未加载mod_slotmem_shm时才使用此平面文件。