agent_check v0.2.8 AgentCheck.GlobalState
This Agent persists the gobal state of the appliction that is reported back to HaProxy.
Link to this section Summary
Functions
Get the entire state struct
Call maint callback after 10 seconds
Set a new state
Start the agent and schedule the first capacity update
Update the capacity in the state struct
Update the capacity and reschedule it every 10 seconds
Link to this section Functions
Link to this function
down()
Link to this function
drain()
Link to this function
get_stats()
Get the entire state struct
Link to this function
maint()
Call maint callback after 10 seconds
Link to this function
ready()
Link to this function
schedule_capacity_update()
Link to this function
set_state(new_state)
Set a new state
Link to this function
start_link(capacity_callback, maint_callback)
Start the agent and schedule the first capacity update.
Link to this function
stop(reason)
Link to this function
update_capacity(new_capacity)
Update the capacity in the state struct
Link to this function
update_capacity_loop()
Update the capacity and reschedule it every 10 seconds