Feedback Agent
The loadbalancer.org feedback agent is used to dynamically set real service weight depending on it's available system resources in HAProxy.
For an in-depth look into how our feedback agent works please refer to this blog post: Open Source Windows service for reporting server load back to HAProxy (load balancer feedback agent).
Features
- CPU metric
- RAM metric
- TCP connections metric
- Read/reload from config
- Halt/Down/Normal Status States
Prerequisites
- Go v1.9 or later
- Windows
Build
Please follow these instructions to build the feedback agent:
go get -d
go build
XML
<xml>
<Cpu>
<ImportanceFactor value="1" />
<ThresholdValue value="100" />
</Cpu>
<Ram>
<ImportanceFactor value="0" />
<ThresholdValue value="100" />
</Ram>
<TCPService>
<Name value="HTTP" />
<IPAddress value="*" />
<Port value="80" />
<MaxConnections value="0" />
<ImportanceFactor value="0" />
</TCPService>
<ReadAgentStatusFromConfig value="False" />
<ReadAgentStatusFromConfigInterval value="5" />
<AgentStatus value="Normal" />
<Interval value="10" />
<Port value="3333" />
<ReturnIdle value="true" />
<LogLevel value="INFO" />
</xml>
Support
If you require assistance with our feedback agent please contact us at support@loadbalancer.org
License
GNU General Public License, version 2