<-
Apache > HTTP 伺服器 > 文件 > 2.4 版 > 模組

Apache 模組 mod_heartbeat

可用的語言:  en  |  fr 

說明將訊息連同伺服器狀態傳送至前端代理程式
狀態實驗中
模組識別碼heartbeat_module
原始檔mod_heartbeat
相容性適用於 Apache 2.3 及更新版本

摘要

mod_heartbeat 傳送多播訊息給 mod_heartmonitor 監控器,用來宣告伺服器目前的連線數目。通常,mod_heartmonitor 會執行在具有已載入 mod_lbmethod_heartbeat 的代理伺服器上,如此一來,ProxyPass 便能於 ProxyPass 中使用「heartbeat」lbmethod

mod_heartbeat 本身已載入在透過代理伺服器提供要求的原始伺服器上。

要使用 mod_heartbeatmod_statusmod_watchdog 必須是靜態模組,或是動態模組,若為動態模組,則必須在 mod_heartbeat 載入前載入。
Support Apache!

主題

指令

錯誤修正檢查清單

參閱

top

使用 mod_heartbeat 輸出

此模組每 1 秒產生一個單一多播 UDP 封包,其中包含處理中和閒置工作者的數量。該封包採用簡單的 ASCII 格式,類似於 HTTP 中的 GET 查詢參數。

範例封包

v=1&ready=75&busy=0

使用時不只處理 busy 和 ready 變數,未來還會新增以「&」分隔的其他變數,消費者應一併處理。

top

HeartbeatAddress 指令

說明心跳封包的多播地址
語法HeartbeatAddress addr:port
預設值已停用
範圍伺服器設定
狀態實驗中
模組mod_heartbeat

HeartbeatAddress 指令會指定 mod_heartbeat 將傳送狀態資訊的多播地址。此地址通常會對應到前端代理系統上已設定的 HeartbeatListen

HeartbeatAddress 239.0.0.1:27999

可用的語言:  en  |  fr 

top

留言

公告
此非問與答區,請將您針對文件或伺服器改進的建議留於此處。若建議已被採納或被認為無效或離題,可能會被我們的版主移除。有關 Apache HTTP Server 管理方式的問題,請轉貼至 Libera.chat 上的 #httpd IRC 頻道,或寄送至我們的郵件清單