mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00

within the same datacenter. mod_heartbeat generates multicast status messages with the current number of clients connected, but the formated can easily be extended to include other things. mod_heartmonitor collects these messages into a static file, which then can be used for other modules to make load balancing decisions on. This module was originally written at Joost by Sander Striker, Justin Erenkrantz, and myself. We have been given permission by our employer to contribute this module. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@721952 13f79535-47bb-0310-9956-ffa450edef68
31 lines
747 B
Plaintext
31 lines
747 B
Plaintext
mod_heartmonitor
|
|
|
|
Collects the Apache Connection status data over multicast.
|
|
|
|
Example Configuration:
|
|
# First parameter is the interface to listen on
|
|
HeartbeatListen 239.0.0.1:27999
|
|
# Absolute path, or relative path to ServerRoot
|
|
HeartbeatStorage logs/hb.dat
|
|
|
|
Dependencies:
|
|
Due to a bug in APR's apr_socket_recvfrom, version 1.2.12 or newer must be
|
|
used:
|
|
<http://svn.apache.org/viewvc?view=rev&revision=467600>
|
|
|
|
Consuming:
|
|
This module atomically writes to the configured path, a list of servers,
|
|
along with metadata about them.
|
|
|
|
Included data about each server:
|
|
- IP Address
|
|
- Busy Slots
|
|
- Open Slots
|
|
- Last Seen
|
|
|
|
Every 5 seconds, this file will be updated with the current status of the
|
|
cluster.
|
|
|
|
|
|
|