New Discussion

Notifications

You’re not receiving notifications from this thread.

Slow jobs on Sidekiq

0
Gems / Libraries

In my application I have a job which makes several database queries (mysql) to recalculate certain fields of a model. (A kind of counter_caches).

Launching individually these methods take about 10 seconds to finish, but when done by sidekiq take about 180 seconds.

The current configuration is a concurrence of 20 and the configuration of the pool in the database.yml is also 20.

I tried adding another instance of sidekiq, and the times are kept around 180 sec, but of course, twice as many jobs are executed simultaneously.

Is there anything I'm not considering? Is it normal for this to happen?

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 89,127+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.