Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue in ruby client with redis engine #363

Closed
neerajkumaragarwal1990 opened this issue Feb 21, 2015 · 2 comments
Closed

Possible issue in ruby client with redis engine #363

neerajkumaragarwal1990 opened this issue Feb 21, 2015 · 2 comments

Comments

@neerajkumaragarwal1990
Copy link

I have been using nodejs faye server (redis engine) with a decent amount of load in production environment. I have a couple of clients, one ruby and one nodejs. The client just subscribes to messages on a particular channel on which data is coming on a huge scale. The issue I encountered was that the ruby client just got stuck, stopped receiving any messages on the channel while the server was still getting those messages. This used to happen once or twice a day. The nodejs client didn't show any such symptoms.

A couple of days back I checked redis logs, I found this log printing a lot of times:

Client id= addr=<IP_where_faye_is_running>: fd=348 name= age=1974 idle=414 flags=N db= sub=2 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=16372 oll=358 omem=9709552 events=rw cmd=subscribe scheduled to be closed ASAP for overcoming of output buffer limits.

The time of ruby client outage matched with this. Whenever ruby client got stuck, this log was present in redis logs, but ruby client didn't get stuck every time this log was present. 2 out of 100 maybe.

I increased the output buffer limit for pubsub clients in redis config, and now ruby client doesn't get stuck, and this log is not printed in redis logs.

Could it be something related to error handling with redis connection being closed midway? Ruby eventmachine not returning control back?

@jcoglan
Copy link
Collaborator

jcoglan commented Jul 5, 2015

Sorry I didn't reply to this sooner. I'm not really knowledgeable enough about Redis to know what's going on here, especially without any repro code. If you find out, could you submit a PR to faye-redis-ruby?

@jcoglan
Copy link
Collaborator

jcoglan commented May 1, 2016

I'm going to close this issue since I've not heard any response to my question, but if you have more information please re-open and leave another comment :)

@jcoglan jcoglan closed this as completed May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants