HAproxy 添加多個配置文件

Here is how I manage this :git

I write a different frontend/backend file for each frontend :github

https://github.com/StevenLeRoux/webhub/blob/master/src/genconf.pyweb

then when I start :markdown

https://github.com/StevenLeRoux/webhub/blob/master/src/haproxyctlfrontend

is doing : CPPPCI  HAPROXY_CONFDIR/ HAPHOSTI  HAPROXY_CONFDIR/backend -I HAPROXY C ONFDIR/frontendo  HAPROXY_CONF $HAPROXY_CPPflex

which basically rebuild one config file. Very fast and you still have
the flexibility to manually remove a frontend quickly.ui

Note that the genconf.py is old now and need to be fixed (header
manipulations…)this

相關文章
相關標籤/搜索