unsubscribe

2013-11-24 Thread Tobias Schlottke
smime.p7s Description: S/MIME cryptographic signature

Re: [PATCH v7 0/9] Auxiliary Agent Check

2013-11-24 Thread Willy Tarreau
Hi Simon, On Mon, Nov 25, 2013 at 10:46:31AM +0900, Simon Horman wrote: > Hi Willy, > > please consider applying this series which adds support for a secondary > health check and removes support for the recently added lb-agent-chk. > > This series is a revised subset of > "[PATCH v6 00/22] Agent

One problem for haproxy

2013-11-24 Thread Kai Zhang
Dear haproxy developers: Thanks for reading my letter.I have a problem to ask for help. I had some servers working in backend.Through health check of haproxy,Some of them are "DOWN" status,I worte these "DOWN" servers into haproxy.cfg, then I called the restart command before I sent r

[PATCH v7 7/9] MEDIUM: Set rise and fall of agent checks to 1

2013-11-24 Thread Simon Horman
This is achieved by moving rise and fall from struct server to struct check. After this move the behaviour of the primary check, server->check is unchanged. However, the secondary agent check, server->agent now has independent rise and fall values each of which are set to 1. The result is that re

[PATCH v7 9/9] MEDIUM: Add DRAIN state and report it on the stats page

2013-11-24 Thread Simon Horman
Add a DRAIN sub-state for a server which will be shown on the stats page instead of UP if its effective weight is zero. Also, log if a server enters or leaves the DRAIN state as the result of an agent check. Signed-off-by: Simon Horman --- Status: pending v7 * Update comment above stats_dump_

[PATCH v7 5/9] MEDIUM: checks: Add supplementary agent checks

2013-11-24 Thread Simon Horman
Allow an auxiliary agent check to be run independently of the regular a regular health check. This is enabled by the agent-check server setting. The agent-port, which specifies the TCP port to use for the agent's connections, is required. The agent-inter, which specifies the interval between agen

[PATCH v7 8/9] MEDIUM: Add enable and disable agent unix socket commands

2013-11-24 Thread Simon Horman
The syntax of this new commands are: enable agent / disable agent / These commands allow temporarily stopping and subsequently re-starting an auxiliary agent check. The effect of this is as follows: New checks are only initialised when the agent is in the enabled. Thus, disable agent will preven

[PATCH v7 6/9] MEDIUM: Do not mark a server as down if the agent is unavailable

2013-11-24 Thread Simon Horman
In the case where agent-port is used and the agent check is a secondary check to not mark a server as down if the agent becomes unavailable. In this configuration the agent should only cause a server to be marked as down if the agent returns "fail", "stopped" or "down". Signed-off-by: Simon Horma

[PATCH v7 3/9] MEDIUM: Log agent fail, stopped or down as info

2013-11-24 Thread Simon Horman
In the case where an agent check returns fail, stopped or down, log this as info when logging the server status along with any trailing message returned by the agent after fail, stopped or down. Previously only the trailing message was logged as info and if omitted no info was logged. Signed-off-

[PATCH v7 4/9] MEDIUM: Remove option lb-agent-chk

2013-11-24 Thread Simon Horman
Remove option lb-agent-chk and thus the facility to configure a stand-alone agent health check. This feature was added by "MEDIUM: checks: Add agent health check". It will be replaced by subsequent patches with a features to allow an agent check to be run as either a secondary check, along with any

[PATCH v7 1/9] MEDIUM: Add helper for task creation for checks

2013-11-24 Thread Simon Horman
This helper is in preparation for adding a second struct check element to struct server. Signed-off-by: Simon Horman --- v7 * Moved cfgparse change to previous patch * Reversed polarity of start_check_task() and updated caller accordingly * Move increment of servpos to outside of if condition

[PATCH v7 0/9] Auxiliary Agent Check

2013-11-24 Thread Simon Horman
Hi Willy, please consider applying this series which adds support for a secondary health check and removes support for the recently added lb-agent-chk. This series is a revised subset of "[PATCH v6 00/22] Agent Check Enhancements and External Check". It builds on patches from that series that hav

[PATCH v7 2/9] MEDIUM: Add helper function for failed checks

2013-11-24 Thread Simon Horman
This consolidates some logic in preparation for enhancing it. Signed-off-by: Simon Horman --- Status: pending v7 * First post in this form. Previously part of "MEDIUM: Do not mark a server as down if the agent is unavailable" --- src/checks.c | 37 - 1 fi