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

    Where is load balancing done?

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 2.3k 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.
    • N
      nikkilocke
      last edited by

      Is it possible to change the load balancing algorithm used by pfSense, to take account of link usage?

      Is the load balancing within the pfSense source code, or is it an external BSD module? If the latter, which one?

      I'm thinking of a fairly simple algorithm.

      It must be possible to determine how much data is coming into and going out from each network card (for there are utilities which draw pretty graphs of same).

      All you would need to do is to find out how much data had come through the port in the last 2 seconds (say), and then choose the one with the lowest number.

      Or, better, have a ceiling for each port, so you can work out the spare capacity, and use that instead (which allows for ports with different speeds).

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The load balancing is done in pf, and it has to happen so fast that there is not enough time to take any of that into consideration. It may work on slow connections but it likely wouldn't scale well.

        Ideas like that are easy to dream up, but much harder to actually implement. :-)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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