Skip to content

A service used to dynamically set real service weight depending on available resources in HAProxy.

License

Notifications You must be signed in to change notification settings

loadbalancerorg/go-feedback-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A service used to dynamically set real service weight depending on available resources in HAProxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •