From fbd404335f78afdcac1e7660b85eec041088bd98 Mon Sep 17 00:00:00 2001 From: Liyu Ma Date: Fri, 6 Feb 2026 16:17:46 +1000 Subject: [PATCH 1/2] Add pipeline for hyperscale cluster provisioning --- .../ccp-provisioning.yml | 69 +++++++++++++++++++ .../terraform-inputs/azure.tfvars | 28 ++++++++ .../terraform-test-inputs/azure.json | 10 +++ .../hyperscale-cluster/collect-noop.yml | 15 ++++ .../hyperscale-cluster/execute-noop.yml | 16 +++++ .../hyperscale-cluster/validate-resources.yml | 56 +++++++++++++++ 6 files changed, 194 insertions(+) create mode 100644 pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml create mode 100644 scenarios/perf-eval/hyperscale-cluster/terraform-inputs/azure.tfvars create mode 100644 scenarios/perf-eval/hyperscale-cluster/terraform-test-inputs/azure.json create mode 100644 steps/topology/hyperscale-cluster/collect-noop.yml create mode 100644 steps/topology/hyperscale-cluster/execute-noop.yml create mode 100644 steps/topology/hyperscale-cluster/validate-resources.yml diff --git a/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml b/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml new file mode 100644 index 0000000000..79acc76658 --- /dev/null +++ b/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml @@ -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_H2 # 16 cores + 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: + H2_tier: + ccp_tier: "H2" + max_parallel: 1 + credential_type: service_connection + ssh_key_enabled: false + timeout_in_minutes: 180 + + - 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: 180 + + - 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: 180 diff --git a/scenarios/perf-eval/hyperscale-cluster/terraform-inputs/azure.tfvars b/scenarios/perf-eval/hyperscale-cluster/terraform-inputs/azure.tfvars new file mode 100644 index 0000000000..b0685534a3 --- /dev/null +++ b/scenarios/perf-eval/hyperscale-cluster/terraform-inputs/azure.tfvars @@ -0,0 +1,28 @@ +scenario_type = "perf-eval" +scenario_name = "hyperscale-cluster" +deletion_delay = "2h" +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" + } + ] + } +] diff --git a/scenarios/perf-eval/hyperscale-cluster/terraform-test-inputs/azure.json b/scenarios/perf-eval/hyperscale-cluster/terraform-test-inputs/azure.json new file mode 100644 index 0000000000..b8b0eadf83 --- /dev/null +++ b/scenarios/perf-eval/hyperscale-cluster/terraform-test-inputs/azure.json @@ -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" + } +} diff --git a/steps/topology/hyperscale-cluster/collect-noop.yml b/steps/topology/hyperscale-cluster/collect-noop.yml new file mode 100644 index 0000000000..5637eb80ef --- /dev/null +++ b/steps/topology/hyperscale-cluster/collect-noop.yml @@ -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." + echo "Terraform operation metadata contains cluster readiness time." + displayName: 'Collect Provision Metrics (No-op)' diff --git a/steps/topology/hyperscale-cluster/execute-noop.yml b/steps/topology/hyperscale-cluster/execute-noop.yml new file mode 100644 index 0000000000..a1f7f8399a --- /dev/null +++ b/steps/topology/hyperscale-cluster/execute-noop.yml @@ -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' diff --git a/steps/topology/hyperscale-cluster/validate-resources.yml b/steps/topology/hyperscale-cluster/validate-resources.yml new file mode 100644 index 0000000000..f02aa73d4f --- /dev/null +++ b/steps/topology/hyperscale-cluster/validate-resources.yml @@ -0,0 +1,56 @@ +parameters: +- name: cloud + type: string +- name: engine + type: string +- name: regions + type: object + +steps: +- template: /steps/cloud/${{ parameters.cloud }}/update-kubeconfig.yml + parameters: + 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 + CCP_TIER="$(ccp_tier)" + echo "CCP Tier: $CCP_TIER" + + # Skip comparison for H2 tier + if [ "$CCP_TIER" = "H2" ]; then + echo "Skipping GOMAXPROCS comparison for tier H2" + exit 0 + fi + + case "$CCP_TIER" in + H4) EXPECTED_CORES=25 ;; + H8) EXPECTED_CORES=54 ;; + *) EXPECTED_CORES="" ;; + esac + + if [ -n "$EXPECTED_CORES" ] && [ -n "$GOMAXPROCS" ]; 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]Could not compare: EXPECTED_CORES=${EXPECTED_CORES:-unset}, GOMAXPROCS=${GOMAXPROCS:-unset}" + exit 1 + fi + displayName: 'Validate API Server CPU Cores' From 1cc1e923c3595d3070803d50598b2695ae2a5c8b Mon Sep 17 00:00:00 2001 From: Liyu Ma Date: Mon, 9 Feb 2026 14:10:06 +1000 Subject: [PATCH 2/2] Address review comments --- .../ccp-provisioning.yml | 12 +++---- .../hyperscale-cluster/validate-resources.yml | 33 +++++++++++++------ 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml b/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml index 79acc76658..f4b60c6ad1 100644 --- a/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml +++ b/pipelines/perf-eval/Hyperscale Cluster Benchmark/ccp-provisioning.yml @@ -14,7 +14,7 @@ variables: SCENARIO_NAME: hyperscale-cluster stages: - - stage: azure_H2 # 16 cores + - stage: azure_baseline # default ccp control plan dependsOn: [] jobs: - template: /jobs/competitive-test.yml @@ -25,12 +25,12 @@ stages: topology: hyperscale-cluster engine: noop # This pipeline only measures cluster provisioning time so no specific benchmark engine is needed matrix: - H2_tier: - ccp_tier: "H2" + baseline: + ccp_tier: "baseline" max_parallel: 1 credential_type: service_connection ssh_key_enabled: false - timeout_in_minutes: 180 + timeout_in_minutes: 60 - stage: azure_H4 # 32 cores dependsOn: [] @@ -48,7 +48,7 @@ stages: max_parallel: 1 credential_type: service_connection ssh_key_enabled: false - timeout_in_minutes: 180 + timeout_in_minutes: 60 - stage: azure_H8 # 64 cores dependsOn: [] @@ -66,4 +66,4 @@ stages: max_parallel: 1 credential_type: service_connection ssh_key_enabled: false - timeout_in_minutes: 180 + timeout_in_minutes: 60 diff --git a/steps/topology/hyperscale-cluster/validate-resources.yml b/steps/topology/hyperscale-cluster/validate-resources.yml index f02aa73d4f..2e14ebe7d3 100644 --- a/steps/topology/hyperscale-cluster/validate-resources.yml +++ b/steps/topology/hyperscale-cluster/validate-resources.yml @@ -27,30 +27,43 @@ steps: fi # Compare with expected cores based on CCP tier - CCP_TIER="$(ccp_tier)" echo "CCP Tier: $CCP_TIER" - # Skip comparison for H2 tier - if [ "$CCP_TIER" = "H2" ]; then - echo "Skipping GOMAXPROCS comparison for tier H2" - exit 0 + 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" ] && [ -n "$GOMAXPROCS" ]; then + 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 + 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" + echo "GOMAXPROCS matches expected cores $EXPECTED_CORES for tier $CCP_TIER" fi else - echo "##vso[task.logissue type=error]Could not compare: EXPECTED_CORES=${EXPECTED_CORES:-unset}, GOMAXPROCS=${GOMAXPROCS:-unset}" + 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)