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

Already on GitHub? Sign in to your account

To many open connections #143

Closed
dejanr opened this Issue Oct 18, 2012 · 2 comments

Comments

Projects
None yet
3 participants

dejanr commented Oct 18, 2012

I have run into a problem, when having 50+ jobs, every job opens 4,5 new redis connections.

I also scaled my workers on 2 servers so they open 2 * same number of connections.

Is there anything i could do to prevent this, and make use of kue for this many jobs?

I ran into the same problem. I fixed it this way:

Don't run kue.createQueue() every time you want to insert a job.
You should run it once, then store it in some kind of registry object. This creates a LOT less connections.

This should probably also be mentioned somewhere. Or kue should reuse its connections…

It looks like this is fixed in #134 :)

@behrad behrad closed this Jan 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment