What versions of HAProxy are supported by ClusterControl?



  • Official comment

    Hi Brian,

    We are just about to start evaluating if HAProxy 1.8 works as is with ClusterControl 1.5.

    I hope to have an answer for you later here today or tomorrow.




  • Avatar
    Brian Showalter

    OK, good to know.  What's the latest version of HAProxy that's supported by ClusterControl?


  • Avatar

    Hi Brian,

    We install currently from the vendor repos, so it is very dependent on the Linux distro (RH, Centos, Debian, Ubuntu) and the OS version.

    However, i have done a small test shot here and i installed a HAProxy first from ClusterControl.

    Then i installed 1.8.1 following these instructions, https://haproxy.debian.net/#?distribution=Ubuntu&release=xenial&version=1.8  and i kept the old config file (installed by CC).

    It seems to work as it used to before.


    For RHEL/CENTOS i have not found any RPMs for 1.8.1:

    But it is probably possible to download the source 
     wget https://www.haproxy.org/download/1.8/src/haproxy-1.8.1.tar.gz
    tar xvfz haproxy-1.8.1.tar.gz
    cd  haproxy-1.8.1/
    make TARGET=linux2628
    sudo make install

    This will install haproxy in /usr/local/sbin/

    However, compiling with systemd support seems broken:

    vagrant@n3:~/haproxy-1.8.1$ make TARGET=linux2628 USE_SYSTEMD=1
    -DBUILD_TARGET='"linux2628"' \
    -DBUILD_ARCH='""' \
    -DBUILD_CPU='"generic"' \
    -DBUILD_CC='"gcc"' \
    -DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-unused-label"' \
    -c -o src/haproxy.o src/haproxy.c
    src/haproxy.c:66:31: fatal error: systemd/sd-daemon.h: No such file or directory
    compilation terminated.

    All in all, if you are on Ubuntu/Debian, then you can try, but if you are on RHEL/CENTOS i would wait one or more revisions until it is actually possible to compile this. Maybe this is why there are no RPMs available for 1.8.1 yet.






  • Avatar


    Disregard my systemd  comment above.

    You also need to install the systemd-devel package :

    yum install systemd-devel

    apt-get install libsystemd-dev

    Then you can do:
    make TARGET=linux2628 USE_SYSTEMD=1

    After this you can do:
    mv /usr/sbin/haproxy /usr/sbin/haproxy-oldversion
    ln -s /usr/local/sbin/haproxy  /usr/sbin/haproxy

    And after this you can make use of the already installed systemd scripts from the previous version installed by CC.

    service haproxy restart

    This works too, i have checked. However, there might be deeper bugs that i am not aware of.

    Best regards



  • Avatar
    Brian Showalter

    Thanks, Johan.  We're running on Debian Jessie, so it sounds like we should be good.  There's a page at https://haproxy.debian.net/#?distribution=Debian&release=jessie&version=1.8 that explains how to install a packaged release.

Please sign in to leave a comment.

Powered by Zendesk