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

Optimization Suggestion for Job Retrieval in Nexrender with Redis #1034

Open
naitik30 opened this issue Dec 19, 2024 · 0 comments
Open

Optimization Suggestion for Job Retrieval in Nexrender with Redis #1034

naitik30 opened this issue Dec 19, 2024 · 0 comments

Comments

@naitik30
Copy link

First, I would like to express my gratitude for creating such an amazing library. It has been working great for our needs.
Currently, we are using Nexrender with network rendering and a Redis database setup to render short videos (approximately 30 seconds each). This setup is functioning well, but we are facing performance challenges when there are a large number of jobs in the pending queue. Specifically, when we have around 30k-40k jobs, it takes approximately 1-2 minutes for the Nexrender server to assign jobs to workers.
From my understanding, the Nexrender server checks for jobs by running a query that fetches all jobs, identifies the queued ones, and assigns them to available workers. Given the high volume of jobs, this process is becoming time-consuming.
To optimize this, would it be possible to modify the Nexrender server or the Nexrender-Redis package to include a route that allows the server to fetch and assign a single queued job directly, rather than querying all jobs at once? This could significantly reduce the delay in job assignment and improve overall performance.
Thank you for your time and for considering this improvement. I look forward to hearing your thoughts on this suggestion.

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

No branches or pull requests

1 participant