Thanks Jonathan for clarifying the problem further for me.

So, how I would go about what I want is to:

  1.  Apply the necessary changes to haproxy.cfg such that in the next 
restart/reload they would be picked up and in a consistent state
  2.  Use socat to apply the same changes at runtime for them to take effect

Now, for me the question becomes about the runtime part that:

  1.  Using socat completely allow me to add, remove, enable, and disable 
endpoints and rules in runtime?
  2.  Is there another way but socat to achieve this at runtime?

Thanks in advance,
Behrooz

On 02/24/2014 08:18 PM, Jonathan Matthews wrote:

On 24 February 2014 18:31, Behrooz Nobakht 
<[email protected]><mailto:[email protected]> wrote:


Hello there,

I am not an expert in HAProxy and tried to find an answer in the docs but
not really yet clear to me.

Here is my situation, I have a script that modifies haproxy.cfg; e.g. it may
add new endpoints, remove them, enable or disable them.

I want to verify on which of the situations above, it is required that
HAProxy process is reloaded/restarted so that the configuration takes
effect?


To answer your exact question: absolutely no changes to the config
file on disk will be picked up by the HAProxy process(es) without you
first restarting/reloading the process.

NB Do note that that doesn't answer the wider question about making
changes to a running process' *idea* of what its configuration should
be. That can be done in a variety of ways, but not via the config file
itself. I'm not best placed to help you with that, however.

Jonathan



--
Behrooz Nobakht | Senior Software Engineer | SDL | (m) +31 (0) 611770610 | 
Twitter: @behruz
</pre><font face="arial" size="2" color="#736F6E">

<a 
href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature";>
<img src="http://www.sdl.com/Content/images/SDLlogo2014.png"; 
border=0><br>www.sdl.com
</a><br><br>

<font face="arial" size="1" color="#736F6E">

<b>SDL PLC confidential, all rights reserved.</b>

If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, 
and we further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>


This message has been scanned for malware by Websense. www.websense.com

Reply via email to