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

What's the reasonable number of recurring jobs #2418

Open
szymon-apaleo opened this issue Jun 10, 2024 · 1 comment
Open

What's the reasonable number of recurring jobs #2418

szymon-apaleo opened this issue Jun 10, 2024 · 1 comment

Comments

@szymon-apaleo
Copy link

I'm working with an application that has more than 50k+ recurring jobs. Besides that, the vast majority of them are triggered every 20 minutes, which seems to be too much for Hangfire. The application works on a default configuration and on a quite powerful machine. CPU and memory usage are low.

So the question is, what's the reasonable number of recurring jobs? And if it's just a couple of thousands, shouldn't it be mentioned somewhere in the docs?

@odinserj
Copy link
Member

Actually there's no any reasonable limits, an Hangfire will slowly enqueue all of them, so everything depends on a storage. However, in recent 1.8.12 version I have added the MaxDegreeOfParallelismForSchedulers experimental option available in the BackgroundJobServerOptions (can be modified when calling AddHangfireServer or UseHangfireServer) that allows to speed up delayed and recurring job schedulers by changing job states in parallel, instead of sequentially. Please try using this option and let me know about the results.

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

No branches or pull requests

2 participants