Multi Instance and Sessions
-
I have the official Docker image for WordPress from Dockerhub installed in kubernetes (EKS). I have it behind a load balancer (ALB). Each pod has two containers, nginx and wordpress. The wordpress containers are using FPM/FCGI with the nginx sidecar. As long as no one logs in, everything works incredibly smooth, like really fast. I’m excited.
However, once I go to wp-admin page and attempt to login, I will always be immediately redirected to the login page again. Something is up with the sessions. It’s been a long time since I used PHP, as far as I remember the sessions are stored in memory or a file.
Anyone know where this session file is saved if it is a file?
Any advice on how multi instance WordPress works with php sessions? I tried using the redis-object-cache plugin but for some reason it still has the same issue? Are there any articles anyone knows of to pull this off?
Please do not mention multi-site, I am not using it. Multi instance means I horizontally scaled one single WordPress site. When I try and search the web for anything, I can only ever find info on multi-sites which is totally getting in the way of Google being useful. I have even tried filtering out search results and I still get endless results about multi-site.
- The topic ‘Multi Instance and Sessions’ is closed to new replies.