Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Comment thread
wonderyl marked this conversation as resolved.
Resolved
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
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"
Comment thread
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"
}
]
}
]
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"
}
}
15 changes: 15 additions & 0 deletions steps/topology/hyperscale-cluster/collect-noop.yml
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."
Comment thread
wonderyl marked this conversation as resolved.
Resolved
echo "Terraform operation metadata contains cluster readiness time."
displayName: 'Collect Provision Metrics (No-op)'
16 changes: 16 additions & 0 deletions steps/topology/hyperscale-cluster/execute-noop.yml
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'
69 changes: 69 additions & 0 deletions steps/topology/hyperscale-cluster/validate-resources.yml
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:
Comment thread
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)