colinmollenhour / Cm_Cache_Backend_Redis

A Zend_Cache backend for Redis with full support for tags (works great with Magento)
Other
389 stars 142 forks source link

Lost Connection to Redis Server #107

Closed abhishek2244 closed 8 years ago

abhishek2244 commented 8 years ago

Hello

I am facing a problem in which server keep showing me the message lost connection to redis server and when i refresh the page it is gone and it is happening frequently as you can see in the image in below link. Please help me resolve this issue. (https://cloud.githubusercontent.com/assets/16360829/15625599/ab1a983e-24ca-11e6-97b0-609f23ca61a5.png)

colinmollenhour commented 8 years ago

How large is your config? To start eliminating issues you might try disabling Redis persistence in case it is an IO issue. Also try with/without phpredis, etc.

abhishek2244 commented 8 years ago

Hey thanks for the support and disabling the redis persistence worked for me.

colinmollenhour commented 8 years ago

If you get that error due to Redis persistence feature then probably your disk is too heavy utilized or just too slow. You can keep it off but if you have to restart the Redis instance then you will start with an empty cache which may or may not be ok in your situation. Either way, I don't think there is anything to be done about it at the PHP layer since if the server is losing connections it is losing connections.. Cheers

ravi2jcommerce commented 8 years ago

Hi Colin,

I am using redis but always having issue with redis, yet moment my current redis setting is "Cm_Cache_Backend_Redis" but I want to change this with "Cm_Cache_Backend_File" so what config required for "Cm_Cache_Backend_File"

Please check current redis config in attach file.

fullpage_cache_redis.txt

Also if possible can you please let me know setting of "Cm_Cache_Backend_File"

Thanks Ravi

colinmollenhour commented 8 years ago

The README includes examples: https://github.com/colinmollenhour/Cm_Cache_Backend_File