nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

SUBSCRIBE / PUBLISH fails #60

Open tllewellynn opened 11 years ago

tllewellynn commented 11 years ago

Hi,

We are using webdis only with the publish / subscribe commands. We have about 5000 to 50000 connections per day, each lasting about 30 seconds, and after some period (depending on load) webdis subscribe stops working. Our webdis and redis instances are on the same server.

Looking at the redis logs, it seems redis is refusing connections to webdis, but webdis does not report any problem. If we restart webdis everything works fine again.

Any ideas to find out what the issue is here? Are too many connections be kept open by webdis?

Thanks, Tim

konklone commented 11 years ago

For whatever this is worth - I needed to have my redis subscribe clients "heartbeat" every so often by re-subscribing to a "heartbeat" channel, or else Redis cast them out. This was in node-redis, and may not be applicable here, but it might be that webdis needs to do something similar.