[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haproxy
Subject:    Re: example of agent-check ?
From:       PiBa-NL <piba.nl.dev () gmail ! com>
Date:       2013-12-27 22:44:57
Message-ID: 52BE02E9.8020103 () gmail ! com
[Download RAW message or body]

Simon Drake schreef op 27-12-2013 17:07:
> /
>
> /
> /Would it be possible to post an example showing the correct haproxy 
> config to use with the agent-check.
>
> /
> /By the way I saw the mailing list post recently about the changes to 
> the agent-check, using state and percentage, and I think that the 
> right way to go./
For me this config works:
     server            MyServer 192.168.0.40:80  check inter 5000 
agent-check agent-inter 3333 agent-port 2123  weight 32

I've tried a few small tests with it, and while bringing a server to 
'down' or 'drain' seemed to work, i was missing the 'up' keyword, only 
"100%" seems to bring a server back alive. So if your monitoring 
100-%CPUusage and sending that 1on1 back to the agent on a server with 
99% cpu capacity available wont come back up..

[Attachment #3 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Simon Drake schreef op 27-12-2013
      17:07:<br>
    </div>
    <blockquote
cite="mid:CADDockxjJGvNO1kD6DtV2ZEzRdWqVmXG9Rbou7N14vaDeb8R+A@mail.gmail.com"
      type="cite">
      <div>
        <div><i><br>
            <br>
          </i></div>
        <i>Would it be possible to post an example showing the correct
          haproxy config to use with the agent-check.<br>
          <br>
        </i></div>
      <i>By the way I saw the mailing list post recently about the
        changes to the agent-check, using state and percentage, and I
        think that the right way to go.</i></blockquote>
    For me this config works:<br>
    &nbsp;&nbsp;&nbsp; server&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
MyServer 192.168.0.40:80&nbsp; check inter 5000  agent-check agent-inter 3333 \
agent-port 2123&nbsp; weight 32 <br>  <br>
    I've tried a few small tests with it, and while bringing a server to
    'down' or 'drain' seemed to work, i was missing the 'up' keyword,
    only "100%" seems to bring a server back alive. So if your
    monitoring 100-%CPUusage and sending that 1on1 back to the agent on
    a server with 99% cpu capacity available wont come back up..<br>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic