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

add an option to use randomized queues (or make that the default) #152

Open
h01ger opened this issue Nov 20, 2024 · 1 comment
Open

add an option to use randomized queues (or make that the default) #152

h01ger opened this issue Nov 20, 2024 · 1 comment

Comments

@h01ger
Copy link
Contributor

h01ger commented Nov 20, 2024

currently rebuilderd queues packages alphabetically, which causes a side effect I'd like to be able to migate a bit:

if one runs two (or more) workers on one machine, often two or several similar packages are build at the same time. this is fine for python* packages but less good for libreoffice-* packages. if the queue order were randomized this would happen way less...

(and granted one should probably only have one worker per system, but then often still several systems run on the same physical host, so this still applies there, even though its better migated as well...)

@h01ger
Copy link
Contributor Author

h01ger commented Nov 29, 2024

 echo "update queue set priority = ABS(RANDOM()) % 1000;" |sqlite3 ~/rebuilderd.db

does the trick for me.

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

No branches or pull requests

1 participant