We have a Online Test application which is used by students. we have 4 different servers and an Nginx above all of them to load balance traffic among all 4 servers.
As our application need sticky session (for one user , all request to one server) so i have enabled ip_hash algorithm for load balancing.
Now we have a situation where all students appear for online test in a computer lab which has private ip assigned to each systems and All pass via one internet gateway with Public IP.
Now when students appear for test load balancer get same origin IP for all students and due to ip_hash it sends all traffic to one server.
how to resolve this issue?
We have maintain Sticky session with equal load distribution.