agent_check v0.1.0 AgentCheck
Implementation of the Agent Check protocol for your Elixir/Phoenix app. Also see - https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.2-agent-check
It allows for easy rolling restarts and dynamic backpressure to your loadbalancer.
Link to this section Summary
Functions
Starts accepting connections on the given port
Reformat the stats struct into a haproxy state format
Wait for incomming socket connection (blocking) and spawn of a Task when one comes in
Link to this section Functions
Link to this function
accept(port)
Starts accepting connections on the given port
.
Link to this function
format_haproxy_state(stats_struct)
Reformat the stats struct into a haproxy state format.
Link to this function
handle_command(command)
Link to this function
loop_acceptor(socket)
Wait for incomming socket connection (blocking) and spawn of a Task when one comes in.
Link to this function
read_line(socket)
Link to this function
serve(socket)