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

Improve the cache hint mechanism / job scheduling #34

Open
tmcgilchrist opened this issue May 10, 2022 · 0 comments
Open

Improve the cache hint mechanism / job scheduling #34

tmcgilchrist opened this issue May 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tmcgilchrist
Copy link
Contributor

tmcgilchrist commented May 10, 2022

Background

Improve the cache hint mechanism / job scheduling for tezos-ci. For now the scheduler is simple, it assumes 600 seconds for an uncached job, 10s if the cache hint matches. An exact match on the cache hint doesn't happen in practice, notably because it's a string and not a string Current.t so it can only be "generic" things. However if the cache hint is too broad, then the scheduler will send all jobs to one machine because it's always better to get the "10s" jobs instead of 600s, even if in practice these "cached" jobs are slower.

Summary

What I'd propose is a progressive match (like github's cache hint), for example
<tezos opam commit>:<MR#>:<commit>:<test name>
and scheduler would send the job to the available worker with the largest common prefix.

Outcome

Improved cache hint support is available on tezos-ci cluster and being used for scheduling jobs.

@tmcgilchrist tmcgilchrist added the enhancement New feature or request label May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant