We've got a very odd issue with our Magento 22.214.171.124 installation which has suddenly started periodically logging us out of the back end whilst simultaneously on the front end it seems to forget peoples session. So on the back end you're suddenly sent to the log in page and even if you can log in again you get logged out pretty much straight away if you click on anything. Then on the front end weird things happen like if you click 'add to basket' it just sends customers to 'there is nothing in your basket' page. Refreshing the page sometimes puts the item back in the basket. If customers are logged in then suddenly they are logged out as well. It's like it's alternating between forgetting and remembering the session.
We have 2 web servers, a database server and a load balancer. My thought was it was an issue with the sessions being stored incorrectly but the hosting company have investigated and everything seems correct from their end. We store sessions in redis across both servers.
It only happens periodically - like once a day for approx 20-30 mins which makes it infuriating to capture. By the time I get hold of the server company it's starting to resolve itself and they can't replicate the issue.
Long shot but anyone any ideas what could be causing this?