-
Notifications
You must be signed in to change notification settings - Fork 4
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
Running out of Redis sockets, what am I doing wrong? #19
Comments
Thanks! Glad you enjoy it. I'll take a look this weekend and see if I can see what is going on. |
@sardaukar It looks like you have a found a use-case way that qup+redis doesn't work so well. You are creating a huge number of topics, and the way the current way the redis adapter is implemented is that each topic gets its own connection to redis. In your use-case you are creating a number of topics, one for each request it looks like. So, at the moment, qup probably won't work for this particular use case. I can change it, and have created issue #20 to address this. I should get to it before the end of the week. If you feel like working on it yourself, I'm happy to accept pull requests. |
I'll give it a shot. Thanks for having a look! |
Excellent, I look forward to your pull request 😄 |
I have one open now (#21). Would appreciate your help with the tests :/ |
Hello!
Thanks for qup, it looks cool. I've tried using it, but I run out of Redis sockets after a while, so I'm missing some cleanup somewhere.
I have a test repo up here with code exemplifying the problem. Just run
bundle
, start the worker and the app, and run./abuse.sh
, which calls curl in an endless stream of requests.My worker's output:
Since I'm removing the topic, I have no idea what cleanup I am missing. Thanks for any help!
The text was updated successfully, but these errors were encountered: