Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Haproxy Drain Issue

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kulpreet
      last edited by

      Hello

      I had used the pfsense on my local machine with haproxy package,I am used 3-4 host  which  can see on the stats page if i put one of them in drain state  and add one more host in the backend then its automatically change the state of last modified  host drain to ready(UP) state.

      Is there any solution to persists drain or maint modes of backend of Haproxy, even if we reload (add,delete a host in backend).

      Thanks & Regards.

      1 Reply Last reply Reply Quote 0
      • P Offline
        PiBa
        last edited by

        Hi kulpreet,

        Its kinda 'by design'.. As these drain settings made on haproxy's stats page are not persisted by haproxy package. And every config change needs a restart of haproxy thus loosing its old state..

        Though it maybe possible to save server state and load it back. Haproxy did add some support for that feature. http://cbonte.github.io/haproxy-dconv/configuration-1.6.html#load-server-state-from-file

        I'm looking into that now.

        Regards,
        PiBa-NL

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.