Score:0

Redis & HAProxy issue

in flag

We just switched one of our PHP projects to use Redis/Haproxy as a solution for storing sessions. The issue we are facing is once in one or two months, the project will randomly lose sessions. We have to refresh the same page 10~30 times to see that issue. If we restart Haproxy, it seems to be working again. But, we don't want our client to experience the same issue every couple weeks.

We basically have Haproxy installed locally on all web servers. In the application itself, we are calling localhost tcp://127.0.0.1:6379 to to get/store the redis session. The HAProxy is configured to three rediscust servers below.. ex. rediscustb01.domain.com rediscustb02.domain.com rediscustb03.domain.com So, in case the first redis cluster failed, it can fall on the second cluster. If the second one fails, it can fall on the third cluster. That's basically how our architecture is laid out. All RedisCust servers data are replicated once there is update.

Is there anything I should pay attention to?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.