Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

Necessity of using both 'balance source' and 'stick on src' in HAProxy configuration

$
0
0

Dear HAProxy community,

I’m currently configuring HAProxy for a SOCKS5 proxy setup, particularly to handle connections to websites like https://claude.ai. I have the following configuration:

listen socks5
    bind    0.0.0.0:16667
    
    balance source
    hash-type consistent
    stick-table type ip size 1m expire 60m
    stick on src

My questions are:

  1. Is it necessary or beneficial to use both balance source and stick on src in this configuration?

  2. What are the implications of using these directives together? Do they complement each other, or is one redundant?

  3. Given that I’m using hash-type consistent, how does this interact with the balance source and stick on src directives?

  4. For a SOCKS5 proxy setup, especially when dealing with websites that might require session persistence, what would be the recommended configuration?

  5. Are there any potential drawbacks or performance implications of using this combination of directives?

I would greatly appreciate any insights or best practices you could share regarding this configuration.

Thank you for your time and expertise.

Best regards,
Zhao

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>