I’m trying to implement sticky sessions in Nginx for a limited time based on a cookie generated by a Python application. In the nginx.conf file, I know I can use ip_hash to ensure that I stay on the same server. However, I need to remain on the same server for only 1 minute before being directed to a different server.
2
Answers
Use the nginx sticky directive.
For example:
do you know the answer? Because I also encountered the same problem.