Website Migration Notice: SafePoint is now operated by CyberServal.Learn more →
Discussion

Load Balancing to two upstream servers.

Published 2 years ago

# SafeLine WAF
# ❓ question

Published 2 years ago

profile_photo

dudzz

Updated 2 years ago

0

Hi guys, I tried setup load balance using safeline to two upstream servers that run using php8.1 with nginx. When I choose "round-robin" or "least connections", the captcha always return wrong evendo already input correctly. If choose "IP hash", dont have problem with captcha and can login normally, but when click any menu in dashboard, it will go to logout state.

This happened in many browsers I used, for desktop and mobile version. Safeline version is 8.0.2

profile_photo

SafeLine-xb

Updated 2 years ago

0

It looks like your multiple upstreams do not share login information, causing this problem when the client randomly connects to the upstream

profile_photo

dudzz

Updated 2 years ago

0

but if using "IP hash" it should be stick to previous server that already connected, is it right?

profile_photo

SafeLine-xb

Updated 2 years ago

0

This is indeed strange, could you check why the upstream server thinks the login is invalid?

profile_photo

dudzz

Updated 2 years ago

0

there is missing php session. I tried with another load balancer, it not experience any issue

Load Balancing to two upstream servers. | CyberServal | CyberServal