Merge ~cjwatson/launchpad:db-builder-resources into launchpad:db-devel
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | cb3f1912c2c338e3b4e64fe797ae0f217759c6eb |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:db-builder-resources |
Merge into: | launchpad:db-devel |
Diff against target: |
25 lines (+19/-0) 1 file modified
database/schema/patch-2211-13-0.sql (+19/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | db | Approve | |
Andrey Fedoseev (community) | Approve | ||
Review via email: mp+433377@code.launchpad.net |
This proposal supersedes a proposal from 2022-11-17.
Commit message
Add columns for builder resources and constraints
Description of the change
This will allow us to mark some builders as having extra hardware resources available to them, and to mark certain Git repositories as requiring those for their CI builds. (If necessary, this could be extended to other build types in future.) This amounts to partitioning the build farm, and we should do that cautiously to avoid reducing overall throughput too much; however, we don't always have a practical alternative, and our build farm is much better-provisioned than it used to be.
The distinction between open and restricted resources allows us to mark some builders as having extra features that might be required by some builds but as being available for use by other builds (e.g. we might put "large" builders in this category), while also having some builders that may only be used by builds that need their features (e.g. we might put specialized GPU hardware in this category).
Colin,
Have you considered using arrays instead of `jsonb` for the new columns?