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

    Inbound Loadbalancing - sticky connections- does not Round Robin

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    12 Posts 5 Posters 7.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.
    • G
      gentis
      last edited by

      I found this topic in the forum to be similar to what I'm experiencing but there was not much of a resolution there.
      http://forum.pfsense.org/index.php/topic,4003.0.html

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        How do you test/notice/experience that all connections go only to a single server?

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          Have you checked the Sticky Address option by chance?

          1 Reply Last reply Reply Quote 0
          • T
            tomato
            last edited by

            Is there any way to get persistent connections using sticky option? ie. We need a session to last about 60 minutes
            during a transaction based on IP. Is that even possible? We were unable to get this to work using sticky connections etc.

            Thanks,

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              It looks like the sticky connection has issues (see the poll in the multiwan board). There is no other option to do something similiar atm. Maybe you can provide some info about your setup and what exactly is happening in that poll thread. The more informations we get the better we can debug it as it doesn't seem to be an issue for everyone.

              1 Reply Last reply Reply Quote 0
              • T
                tomato
                last edited by

                It was several months ago that I tried it. We setup an https LB pool with sticky set in Advanced.
                Then I created a special rule for the https: Advanced options: State timeout 3600 (1 hour).

                What we are trying to do: We want a way to have the same clients connect to the same https
                servers for a period of at least 1 hour. Session and user data is stored locally.
                (Eventually we will re-write the software so that each server is able to hand the session data correctly.)

                My understanding at that time is that the browser needed to keep open the connection to keep
                a persistent server talking to the same client. Since we could not do that, I assumed that what I was doing was not possible so we gave up. I've been researching persistent sessions and did find that pf has a souce-hash option that might work ala http://leaf.dragonflybsd.org/cgi/web-man?command=pf.conf§ion=5

                I thought about using some custom rules with the source-hash options, but decided it was too
                risky given that we already have a complex multi-unit carp setup.

                1 Reply Last reply Reply Quote 0
                • H
                  hoba
                  last edited by

                  The state timeout only affects idle states but when you connect to an https server you open a state, get the data and colse the state after the data was transferred again. It won't keep that state alive so the statetimeouts won't work here.

                  1 Reply Last reply Reply Quote 0
                  • T
                    tomato
                    last edited by

                    Hoba,

                    Do you think posting a bounty for source-hashed  pools would be helpful?
                      What other options can you recommend?

                    1 Reply Last reply Reply Quote 0
                    • H
                      hoba
                      last edited by

                      I can't say for sure but bounties will always help to raise interest and as this is a rather hot topic others might jump on that bounty to add more money as well. Give it a try and see what happens. Unfortunately I don't have another solution at hand right now.

                      1 Reply Last reply Reply Quote 0
                      • G
                        gentis
                        last edited by

                        How do i configure Sticky Address? And what is the behavior with this option?
                        Thanks
                        G

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