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

    Haproxy - please include leastconn algorithm

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 2.0k 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
      kamus
      last edited by

      I'm not sure if this requirement/wishlist should be posted here, but in any case if is necessary please move.

      Since haproxy package (1.3.xx version) included in Pfsense 1.2.3 has a series of balance algorithm, RoundRobin and Source, there are other alternatives that
      should be included, is this case "leastconn" algorithm. According to haproxy  documentation said:

      The server with the lowest number of connections receives the connection. Round-robin is performed within groups of servers of the same load to ensure that all servers will be used. Use of this algorithm is recommended where very long sessions are expected, such as LDAP, SQL, TSE, etc… but is not very well suited for protocols using short sessions such as HTTP. This algorithm is dynamic, which means that server weights may be adjusted on the fly for slow starts for instance.

      In our and maybe others cases is the best solution for our cluster/failver/load balancer platform. Any way, I have been solved temporaly this issue doing by me self these changes and have worked without issues (I have attached a txt file). If you need this, you have to replace this file into "/usr/local/www/" directory and that's all, please renamed to .php extension. If any haproxy maintainer or developer has a opinion we would be appreciated to listen.

      Best regard,
      Kamus :)
      haproxy_frontends_edit.txt

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