Re: Dynamically change server maxconn possible?

2015-10-19 Thread Daren Sefcik
Thanks, this will be helpful to find a good load balance as the systems are
running.

On Mon, Oct 19, 2015 at 1:12 PM, Willy Tarreau  wrote:

> On Mon, Oct 19, 2015 at 02:19:52PM -0500, Andrew Hayworth wrote:
> > I was just thinking about how useful this would be, and will submit a
> patch
> > for it.
>
> Thank you Andrew.
>
> Willy
>
>


Re: Dynamically change server maxconn possible?

2015-10-19 Thread Willy Tarreau
On Mon, Oct 19, 2015 at 02:19:52PM -0500, Andrew Hayworth wrote:
> I was just thinking about how useful this would be, and will submit a patch
> for it.

Thank you Andrew.

Willy




Re: Dynamically change server maxconn possible?

2015-10-19 Thread Andrew Hayworth
I was just thinking about how useful this would be, and will submit a patch
for it.

On Fri, Oct 16, 2015 at 3:53 PM, Willy Tarreau  wrote:

> On Fri, Oct 16, 2015 at 12:07:17PM -0700, Daren Sefcik wrote:
> > I am thinking the answer is no but figured I would ask just to make
> > sure...basically can I change individual server maxconn numbers
> on-the-fly
> > while haproxy is running or do I need to do a full restart to have them
> > take effect?
>
> It's not possible right now but given that we support dynamic maxconn,
> I see no technical problem to implement it and I actually think it would
> be a good idea to support this on the CLI, as "set maxconn server XXX"
> just like we have "set maxconn frontend YYY".
>
> If you (or anyone else) is interested in trying to implement it, I'm
> willing to review the patch and help if any difficulty is faced.
>
> Regards,
> Willy
>
>
>


-- 
- Andrew Hayworth


Dynamically change server maxconn possible?

2015-10-16 Thread Daren Sefcik
I am thinking the answer is no but figured I would ask just to make
sure...basically can I change individual server maxconn numbers on-the-fly
while haproxy is running or do I need to do a full restart to have them
take effect?

TIA...


Re: Dynamically change server maxconn possible?

2015-10-16 Thread Willy Tarreau
On Fri, Oct 16, 2015 at 12:07:17PM -0700, Daren Sefcik wrote:
> I am thinking the answer is no but figured I would ask just to make
> sure...basically can I change individual server maxconn numbers on-the-fly
> while haproxy is running or do I need to do a full restart to have them
> take effect?

It's not possible right now but given that we support dynamic maxconn,
I see no technical problem to implement it and I actually think it would
be a good idea to support this on the CLI, as "set maxconn server XXX"
just like we have "set maxconn frontend YYY".

If you (or anyone else) is interested in trying to implement it, I'm
willing to review the patch and help if any difficulty is faced.

Regards,
Willy