Repository navigation
Pipeline to benchmark hyperscale cluster provisioning #1040
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
Merged
Liyu Ma (liyu-ma)
merged 2 commits into
main
from
maliyu/hyperscale-cluster-provisioning
Feb 10, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
69 changes: 69 additions & 0 deletions
69
pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml
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,69 @@ | ||
| trigger: none | ||
|
|
||
| schedules: | ||
| - cron: "0 0,6,12,18 * * *" | ||
| displayName: "Run 4 times daily" | ||
| branches: | ||
| include: | ||
| - main | ||
| always: true | ||
| batch: false | ||
|
|
||
| variables: | ||
| SCENARIO_TYPE: perf-eval | ||
| SCENARIO_NAME: hyperscale-cluster | ||
|
|
||
| stages: | ||
| - stage: azure_baseline # default ccp control plan | ||
| dependsOn: [] | ||
| jobs: | ||
| - template: /jobs/competitive-test.yml | ||
| parameters: | ||
| cloud: azure | ||
| regions: | ||
| - australiaeast | ||
| topology: hyperscale-cluster | ||
| engine: noop # This pipeline only measures cluster provisioning time so no specific benchmark engine is needed | ||
| matrix: | ||
| baseline: | ||
| ccp_tier: "baseline" | ||
| max_parallel: 1 | ||
| credential_type: service_connection | ||
| ssh_key_enabled: false | ||
| timeout_in_minutes: 60 | ||
|
|
||
| - stage: azure_H4 # 32 cores | ||
| dependsOn: [] | ||
| jobs: | ||
| - template: /jobs/competitive-test.yml | ||
| parameters: | ||
| cloud: azure | ||
| regions: | ||
| - uksouth | ||
| topology: hyperscale-cluster | ||
| engine: noop # This pipeline only measures cluster provisioning time so no specific benchmark engine is needed | ||
| matrix: | ||
| H4_tier: | ||
| ccp_tier: "H4" | ||
| max_parallel: 1 | ||
| credential_type: service_connection | ||
| ssh_key_enabled: false | ||
| timeout_in_minutes: 60 | ||
|
|
||
| - stage: azure_H8 # 64 cores | ||
| dependsOn: [] | ||
| jobs: | ||
| - template: /jobs/competitive-test.yml | ||
| parameters: | ||
| cloud: azure | ||
| regions: | ||
| - northeurope | ||
| topology: hyperscale-cluster | ||
| engine: noop | ||
| matrix: | ||
| H8_tier: | ||
| ccp_tier: "H8" | ||
| max_parallel: 1 | ||
| credential_type: service_connection | ||
| ssh_key_enabled: false | ||
| timeout_in_minutes: 60 | ||
28 changes: 28 additions & 0 deletions
28
scenarios/perf-eval/hyperscale-cluster/terraform-inputs/azure.tfvars
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,28 @@ | ||
| scenario_type = "perf-eval" | ||
| scenario_name = "hyperscale-cluster" | ||
| deletion_delay = "2h" | ||
|
wonderyl marked this conversation as resolved.
Resolved
|
||
| owner = "aks" | ||
|
|
||
| aks_cli_config_list = [ | ||
| { | ||
| role = "client" | ||
| aks_name = "hyperscale-cluster" | ||
| sku_tier = "standard" | ||
| kubernetes_version = "1.33" | ||
| default_node_pool = { | ||
| name = "default" | ||
| node_count = 1 | ||
| vm_size = "Standard_D8s_v3" | ||
| } | ||
| optional_parameters = [ | ||
| { | ||
| name = "network-plugin" | ||
| value = "azure" | ||
| }, | ||
| { | ||
| name = "network-plugin-mode" | ||
| value = "overlay" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
10 changes: 10 additions & 0 deletions
10
scenarios/perf-eval/hyperscale-cluster/terraform-test-inputs/azure.json
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,10 @@ | ||
| { | ||
| "run_id": "123456789", | ||
| "region": "uksouth", | ||
| "aks_cli_system_node_pool": { | ||
| "name": "default", | ||
| "node_count": 1, | ||
| "vm_size": "Standard_D8s_v3", | ||
| "vm_set_type": "VirtualMachineScaleSets" | ||
| } | ||
| } |
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,15 @@ | ||
| parameters: | ||
| - name: cloud | ||
| type: string | ||
| - name: regions | ||
| type: object | ||
| default: {} | ||
| - name: engine_input | ||
| type: object | ||
| default: {} | ||
|
|
||
| steps: | ||
| - script: | | ||
| echo "No additional metrics to collect for provision engine." | ||
|
wonderyl marked this conversation as resolved.
Resolved
|
||
| echo "Terraform operation metadata contains cluster readiness time." | ||
| displayName: 'Collect Provision Metrics (No-op)' | ||
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,16 @@ | ||
| parameters: | ||
| - name: cloud | ||
| type: string | ||
| default: '' | ||
| - name: engine_input | ||
| type: object | ||
| default: {} | ||
| - name: regions | ||
| type: object | ||
| default: {} | ||
|
|
||
| steps: | ||
| - script: | | ||
| echo "Cluster provisioned successfully. Skipping test execution." | ||
| echo "Cluster readiness time is captured in terraform operation metadata." | ||
| displayName: 'Verify Cluster Provisioning Complete' |
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,69 @@ | ||
| parameters: | ||
| - name: cloud | ||
| type: string | ||
| - name: engine | ||
| type: string | ||
| - name: regions | ||
| type: object | ||
|
|
||
| steps: | ||
| - template: /steps/cloud/${{ parameters.cloud }}/update-kubeconfig.yml | ||
| parameters: | ||
|
liyu-ma marked this conversation as resolved.
Resolved
|
||
| role: client | ||
| region: ${{ parameters.regions[0] }} | ||
|
|
||
| - script: | | ||
| echo "Checking API server GOMAXPROCS (max CPU cores available)..." | ||
| GOMAXPROCS_LINE=$(kubectl get --raw /metrics | grep '^go_sched_gomaxprocs_threads') | ||
| echo "Raw metric line:" | ||
| echo "$GOMAXPROCS_LINE" | ||
| GOMAXPROCS=$(echo "$GOMAXPROCS_LINE" | awk '{print $2}') | ||
| echo "API server GOMAXPROCS: $GOMAXPROCS" | ||
| if [ -z "$GOMAXPROCS" ]; then | ||
| echo "##vso[task.logissue type=warning]Could not retrieve GOMAXPROCS metric" | ||
| else | ||
| echo "##vso[task.setvariable variable=API_SERVER_CORES]$GOMAXPROCS" | ||
| echo "API server can use up to $GOMAXPROCS CPU cores" | ||
| fi | ||
|
|
||
| # Compare with expected cores based on CCP tier | ||
| echo "CCP Tier: $CCP_TIER" | ||
|
|
||
| if [ -z "$GOMAXPROCS" ]; then | ||
| echo "##vso[task.logissue type=error]GOMAXPROCS is not set, cannot validate" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Baseline: GOMAXPROCS should be less than 15 | ||
| if [ "$CCP_TIER" = "baseline" ]; then | ||
| if [ "$GOMAXPROCS" -lt 15 ]; then | ||
| echo "GOMAXPROCS ($GOMAXPROCS) is less than 15 as expected for baseline tier" | ||
| exit 0 | ||
| else | ||
| echo "##vso[task.logissue type=error]GOMAXPROCS mismatch: expected less than 15, got $GOMAXPROCS for baseline tier" | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
| # H* tiers: compare with expected values | ||
| case "$CCP_TIER" in | ||
| H2) EXPECTED_CORES=15 ;; | ||
| H4) EXPECTED_CORES=25 ;; | ||
| H8) EXPECTED_CORES=54 ;; | ||
| *) EXPECTED_CORES="" ;; | ||
| esac | ||
|
|
||
| if [ -n "$EXPECTED_CORES" ]; then | ||
| if [ "$GOMAXPROCS" -ne "$EXPECTED_CORES" ]; then | ||
| echo "##vso[task.logissue type=error]GOMAXPROCS mismatch: expected $EXPECTED_CORES, got $GOMAXPROCS for tier $CCP_TIER" | ||
| exit 1 | ||
| else | ||
| echo "GOMAXPROCS matches expected cores $EXPECTED_CORES for tier $CCP_TIER" | ||
| fi | ||
| else | ||
| echo "##vso[task.logissue type=error]Unknown CCP tier: $CCP_TIER" | ||
| exit 1 | ||
| fi | ||
| displayName: 'Validate API Server CPU Cores' | ||
| env: | ||
| CCP_TIER: $(ccp_tier) | ||
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.