-
Notifications
You must be signed in to change notification settings - Fork 243
Switch pod-scheduler configs from JSON to YAML; add JSON Schema #2170
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
Open
LoopedBard3
wants to merge
8
commits into
aspnet:main
Choose a base branch
from
LoopedBard3:loopedbard3/pod-config-format-options
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8451f35
Switch pod-scheduler configs from JSON to YAML; add JSON Schema
LoopedBard3 3b81b75
Address PR review: declare PyYAML, reject bool for numeric fields
LoopedBard3 4117264
Pod config: positional [sut, load, db] shorthand for machines/profiles
LoopedBard3 9828898
Address PR review: parallel-array form + drop extension dispatch
LoopedBard3 5b0bb62
Drop ScenarioType IntEnum; Pod stores parallel lists internally
LoopedBard3 d7ed522
Merge upstream/main: pick up EOL'd citrine/perf relay removals (#2169)
LoopedBard3 baa02f7
Drop unused pod.sut / pod.load / pod.db @property accessors
LoopedBard3 a77142d
Clean up additional dead code in pod-scheduler
LoopedBard3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # yaml-language-server: $schema=../scripts/pod-scheduler/pod-config.schema.json | ||
|
|
||
| # Azure CI pod-scheduler config. | ||
| # | ||
| # Covers Azure cloud pods plus the merged eastus2 cobalt-cloud pods (folded | ||
| # in here when their dedicated pipeline was retired). Generates a single | ||
| # ./benchmarks-ci-azure.yml. | ||
| # | ||
| # Edit this file then regenerate from the repo root: | ||
| # python ./scripts/pod-scheduler/main.py \ | ||
| # --config ./build/benchmarks_ci_azure_pods.yml \ | ||
| # --base-name benchmarks-ci-azure --yaml-output ./build | ||
| metadata: | ||
| name: Azure CI Benchmarks Configuration | ||
| description: Pod-based scheduling for Azure CI benchmarks (includes cobalt cloud from eastus2) | ||
| version: "2.1" | ||
| schedule: "0 2/12 * * *" | ||
| queues: | ||
| - azure | ||
| - azurearm64 | ||
| yaml_generation: | ||
| target_yaml_count: 1 | ||
| schedule_offset_hours: 0 | ||
|
|
||
| pods: | ||
| - name: azure-arm64 | ||
| machines: { sut: azure-server-arm64, load: azure-client, db: azure-db } | ||
| profiles: { sut: azure-server-arm64-app, load: azure-client-load, db: azure-db-db } | ||
|
|
||
| - name: azure2-amd64 | ||
| machines: { sut: azure2-server-amd64, load: azure2-client, db: azure2-db } | ||
| profiles: { sut: azure2-server-amd64-app, load: azure2-client-load, db: azure2-db-db } | ||
|
|
||
| # eastus2 cobalt-cloud pods, merged in when the dedicated pipeline was retired. | ||
| - name: cobalt-cloud-lin | ||
| machines: { sut: cobalt-cloud-lin-server, load: cobalt-cloud-lin-client, db: cobalt-cloud-lin-db } | ||
| profiles: { sut: cobalt-cloud-lin-server-app, load: cobalt-cloud-lin-client-load, db: cobalt-cloud-lin-db-db } | ||
|
|
||
| - name: cobalt-cloud-lin-azl3 | ||
| # Same load + db machines as cobalt-cloud-lin but a different SUT image | ||
| # (Azure Linux 3). Cannot share a stage with cobalt-cloud-lin triples. | ||
| machines: { sut: cobalt-cloud-lin-server-azl3, load: cobalt-cloud-lin-client, db: cobalt-cloud-lin-db } | ||
| profiles: { sut: cobalt-cloud-lin-server-azure-linux3-app, load: cobalt-cloud-lin-client-load, db: cobalt-cloud-lin-db-db } | ||
|
|
||
| - name: cobalt-cloud-lin-azl3-dual | ||
| # Dual-only variant: re-uses the db box as the load generator so we can | ||
| # run dual scenarios without needing a separate load machine. | ||
| machines: { sut: cobalt-cloud-lin-server-azl3, load: cobalt-cloud-lin-db } | ||
| profiles: { sut: cobalt-cloud-lin-server-azure-linux3-app, load: cobalt-cloud-lin-db-load } | ||
|
|
||
| - name: idna-amd-lin | ||
| # idna-amd-lin and idna-intel-lin are mutually each other's load box. | ||
| machines: { sut: idna-amd-lin, load: idna-intel-lin } | ||
| profiles: { sut: idna-amd-lin-app, load: idna-intel-lin-load } | ||
|
|
||
| - name: idna-amd-win | ||
| # Borrows azure2-db as the load box for cross-cluster idna jobs. | ||
| machines: { sut: idna-amd-win, load: azure2-db } | ||
| profiles: { sut: idna-amd-win-app, load: azure2-db-load } | ||
|
|
||
| - name: idna-intel-lin | ||
| machines: { sut: idna-intel-lin, load: idna-amd-lin } | ||
| profiles: { sut: idna-intel-lin-app, load: idna-amd-lin-load } | ||
|
|
||
| - name: idna-intel-win | ||
| machines: { sut: idna-intel-win, load: azure2-db } | ||
| profiles: { sut: idna-intel-win-app, load: azure2-db-load } | ||
|
|
||
| scenarios: | ||
| - name: Containers | ||
| template: containers-scenarios.yml | ||
| type: triple | ||
| pods: [azure-arm64, azure2-amd64, cobalt-cloud-lin, cobalt-cloud-lin-azl3] | ||
| estimated_runtime: 90 | ||
|
|
||
| - name: Baselines Database | ||
| template: baselines-database-scenarios.yml | ||
| type: triple | ||
| pods: [azure-arm64, azure2-amd64, cobalt-cloud-lin, cobalt-cloud-lin-azl3] | ||
| estimated_runtime: 45 | ||
|
|
||
| - name: Baselines | ||
| template: baselines-scenarios.yml | ||
| type: dual | ||
| pods: [azure-arm64, azure2-amd64, cobalt-cloud-lin, cobalt-cloud-lin-azl3-dual] | ||
| estimated_runtime: 30 | ||
|
|
||
| - name: MVC | ||
| template: mvc-scenarios.yml | ||
| type: triple | ||
| pods: [cobalt-cloud-lin, cobalt-cloud-lin-azl3] | ||
| estimated_runtime: 20 | ||
|
|
||
| - name: Trends | ||
| template: trend-scenarios.yml | ||
| type: dual | ||
| pods: [azure-arm64, azure2-amd64, cobalt-cloud-lin, cobalt-cloud-lin-azl3-dual, idna-amd-lin, idna-amd-win, idna-intel-lin, idna-intel-win] | ||
| estimated_runtime: 20 | ||
|
|
||
| - name: Trends Database | ||
| template: trend-database-scenarios.yml | ||
| type: triple | ||
| pods: [azure-arm64, azure2-amd64, cobalt-cloud-lin, cobalt-cloud-lin-azl3] | ||
| estimated_runtime: 15 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.