Hello,

Would this cause a port conflict or anything like this ?

Or when you use -sf, it automatically 'unbind' the port on the old process,
allowing it only for the new one ?

-----Mensagem original-----
De: Jeff Zellner [mailto:j...@olark.com] 
Enviada em: segunda-feira, 21 de outubro de 2013 15:07
Para: Fred Pedrisa
Cc: haproxy@formilux.org
Assunto: Re: High CPU Usage (HaProxy)

Yes you could have all different applications in one process/configuration.

When you 'reload' using -sf you'd have 2 processes for a while (depends on
if you have long-lived connections or not). The old processes scheduled to
die will typically take a lot less CPU, because they are handling only a
couple connections and not any new ones.

On Mon, Oct 21, 2013 at 1:04 PM, Fred Pedrisa <fredhp...@hotmail.com> wrote:
> Hello,
>
> So, I can run all my instances in just one process and work with it 
> this way, by using -sf right ?
>
> -----Mensagem original-----
> De: Jeff Zellner [mailto:j...@olark.com] Enviada em: segunda-feira, 21 
> de outubro de 2013 14:59
> Para: Fred Pedrisa
> Cc: haproxy@formilux.org
> Assunto: Re: High CPU Usage (HaProxy)
>
> -sf will not actually kill the old process(es) immediately. They'll 
> end when they are no longer handling the currently connected clients 
> they have, but the new process will handle all new connections.
>
> On Mon, Oct 21, 2013 at 12:57 PM, Fred Pedrisa <fredhp...@hotmail.com>
> wrote:
>> Hello,
>>
>> Are there any parameters that could be touched to potentially help 
>> with the cpu usage ?
>>
>> And the -sf parameter, will kill the old one while keeping the new 
>> one, that's it ?
>>
>> -----Mensagem original-----
>> De: Jeff Zellner [mailto:j...@olark.com] Enviada em: segunda-feira, 
>> 21 de outubro de 2013 14:54
>> Para: Fred Pedrisa
>> Cc: haproxy@formilux.org
>> Assunto: Re: High CPU Usage (HaProxy)
>>
>> Hi Fred,
>>
>> I imagine that your high load is due to running many instances of 
>> HAProxy, but hard to be 100% without all the information.
>>
>> Load indicates that there are processes waiting to execute, so by 
>> reducing the number of HAProxy processes you should see a reduced 
>> load (but still high cpu utilization).
>>
>> You can accomplish the same effect as reloading settings by running 
>> another HAProxy process with the -sf parameter (this would 
>> potentially lead to more load, but could be mitigated by combining 
>> your many
> instances).
>>
>> From the manpage:
>>
>>      -sf <pidlist>
>>               Send  FINISH  signal  to the pids in pidlist after startup.
>> The processes which receive this signal
>>               will wait for all sessions to finish before exiting.
>> This option must be specified  last,  followed
>>               by any number of PIDs. Technically speaking, SIGTTOU 
>> and
>> SIGUSR1 are sent.
>>
>> Cheers,
>> Jeff
>>
>> On Mon, Oct 21, 2013 at 12:46 PM, Fred Pedrisa 
>> <fredhp...@hotmail.com>
>> wrote:
>>> Hello,
>>>
>>>
>>>
>>> I am using many haproxy instances, for separated projects.
>>>
>>>
>>>
>>> This is causing a high cpu usage, and a high load in the OS up to
>>> 12.00 and so on.
>>>
>>>
>>>
>>> The question is, using just one instance, would reduce the CPU load, 
>>> or it would make no difference at all ?
>>>
>>>
>>>
>>> Also, is there a way to just reload the settings of an already 
>>> running instance ?
>>>
>>>
>>>
>>> Thanks !
>>>
>>>
>>
>


Reply via email to