colinmollenhour / Cm_RedisSession

Redis-based session handler for Magento with optimistic locking
208 stars 121 forks source link

Session storage - Too many active connections #174

Open dandrikop opened 4 years ago

dandrikop commented 4 years ago

I'm using this module for session storage of Magento 1.7.0.2 at Redis. I have noticed that there is often a high number of connections to Redis server. Could pipelining mitigate this situation? If yes, can this be configured via the Magento file app/etc/local.xml?

colinmollenhour commented 4 years ago

Pipelining is already used and would not affect the number of connections. Are you thinking of persistent connections? This could definitely help.

Another thing you can do is use a proxy like HAProxy to basically act as a connection pool to offload managing a large number of connections off of Redis. However, you shouldn't have a need for this many connections unless you have lots of app servers and a very very busy site.

reevelau commented 3 years ago

Is it a situation non persistent redis connections performing better?

I wonder the situation could be the reason of not making persistent connections a default setting.