Skip to content

clearcare/agent_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent_check

Inspired by this post

Responds to telnet request with CPU Idle %. Also opens up a command channel on localhost that will accept management commands (i.e. Drain, Stop, Ready) Can be used with HAProxy’s agent-check to weight traffic based on CPU load.
Note: The agent check functionality was added as of version 1.5

[user@aServer ~]$ nc localhost 5309
UP 99%
[user@aServer ~]$ echo "DRAIN" | nc localhost 8675
DRAIN OK
[user@aServer ~]$ nc localhost 5309
DRAIN 99%

user@aServer ~]$ echo "READY" | nc localhost 8675
READY OK
[user@aServer ~]$ nc localhost 5309
READY 100%

agent_check can be run from the command line or with supervisord and supervisord-like utilities.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages