From d6308e224f6fa2bee5a5e380b0bc596225a59faf Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Wed, 28 Jan 2026 03:12:14 +0000 Subject: [PATCH 1/3] Fix P50/P90/P99 percentile metrics returning 'no samples' --- .../cri/config/containerd-measurements.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/python/clusterloader2/cri/config/containerd-measurements.yaml b/modules/python/clusterloader2/cri/config/containerd-measurements.yaml index c64324c525..11c4257db5 100644 --- a/modules/python/clusterloader2/cri/config/containerd-measurements.yaml +++ b/modules/python/clusterloader2/cri/config/containerd-measurements.yaml @@ -20,10 +20,10 @@ steps: # Number of successful image pull observations - name: Count query: sum(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}) - # Cluster level percentiles - throughput distribution across nodes + # Cluster level percentiles - throughput distribution across nodes (filtered to exclude nodes with no pulls) - name: Perc50 - query: quantile(0.5, sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) + query: quantile(0.5, (sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) and (sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v])) > 0)) - name: Perc90 - query: quantile(0.9, sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) + query: quantile(0.9, (sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) and (sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v])) > 0)) - name: Perc99 - query: quantile(0.99, sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) + query: quantile(0.99, (sum by (instance) (rate(containerd_cri_image_pulling_throughput_sum{nodepool=~"userpool.*"}[%v])) / sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v]))) and (sum by (instance) (rate(containerd_cri_image_pulling_throughput_count{nodepool=~"userpool.*"}[%v])) > 0)) From 2a0fb4754d0c51b2a883d0610fae3896c4aac899 Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Wed, 28 Jan 2026 03:22:11 +0000 Subject: [PATCH 2/3] Add test pipeline for P50 fix validation --- pipelines/system/new-pipeline-test.yml | 44 ++++++++++++++++---------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/pipelines/system/new-pipeline-test.yml b/pipelines/system/new-pipeline-test.yml index 63d55f02d9..d3136de250 100644 --- a/pipelines/system/new-pipeline-test.yml +++ b/pipelines/system/new-pipeline-test.yml @@ -1,25 +1,37 @@ trigger: none variables: - SCENARIO_TYPE: - SCENARIO_NAME: + SCENARIO_TYPE: perf-eval + SCENARIO_NAME: image-pull-n10 stages: - - stage: # format: [_]+ (e.g. azure_eastus2, aws_eastus_westus) + - stage: azure_eastus2_image_pull dependsOn: [] jobs: - - template: /jobs/competitive-test.yml # must keep as is + - template: /jobs/competitive-test.yml parameters: - cloud: # e.g. azure, aws - regions: # list of regions - - region1 # e.g. eastus2 - topology: # e.g. cluster-autoscaler - engine: # e.g. clusterloader2 - matrix: # list of test parameters to customize the provisioned resources - : - : - : - max_parallel: # required - credential_type: service_connection # required + cloud: azure + regions: + - eastus2 + engine: clusterloader2 + engine_input: + image: "ghcr.io/azure/clusterloader2:v20250513" + topology: image-pull + matrix: + image-pull-p50-test: + node_count: 10 + max_pods: 30 + repeats: 1 + operation_timeout: 30m + load_type: memory + scrape_containerd: True + scrape_kubelets: True + containerd_scrape_interval: 15s + registry_endpoint: acrtelescope.azurecr.io + kubernetes_version: "1.34" + pod_startup_latency_threshold: 120s + anonymous_pull: False + max_parallel: 1 + credential_type: service_connection ssh_key_enabled: false - timeout_in_minutes: 60 # if not specified, default is 60 + timeout_in_minutes: 60 From b005585e3eaa09e4c89ed23a6a25523199ddc64b Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Wed, 28 Jan 2026 03:49:00 +0000 Subject: [PATCH 3/3] Revert new-pipeline-test.yml to template --- pipelines/system/new-pipeline-test.yml | 44 ++++++++++---------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/pipelines/system/new-pipeline-test.yml b/pipelines/system/new-pipeline-test.yml index d3136de250..63d55f02d9 100644 --- a/pipelines/system/new-pipeline-test.yml +++ b/pipelines/system/new-pipeline-test.yml @@ -1,37 +1,25 @@ trigger: none variables: - SCENARIO_TYPE: perf-eval - SCENARIO_NAME: image-pull-n10 + SCENARIO_TYPE: + SCENARIO_NAME: stages: - - stage: azure_eastus2_image_pull + - stage: # format: [_]+ (e.g. azure_eastus2, aws_eastus_westus) dependsOn: [] jobs: - - template: /jobs/competitive-test.yml + - template: /jobs/competitive-test.yml # must keep as is parameters: - cloud: azure - regions: - - eastus2 - engine: clusterloader2 - engine_input: - image: "ghcr.io/azure/clusterloader2:v20250513" - topology: image-pull - matrix: - image-pull-p50-test: - node_count: 10 - max_pods: 30 - repeats: 1 - operation_timeout: 30m - load_type: memory - scrape_containerd: True - scrape_kubelets: True - containerd_scrape_interval: 15s - registry_endpoint: acrtelescope.azurecr.io - kubernetes_version: "1.34" - pod_startup_latency_threshold: 120s - anonymous_pull: False - max_parallel: 1 - credential_type: service_connection + cloud: # e.g. azure, aws + regions: # list of regions + - region1 # e.g. eastus2 + topology: # e.g. cluster-autoscaler + engine: # e.g. clusterloader2 + matrix: # list of test parameters to customize the provisioned resources + : + : + : + max_parallel: # required + credential_type: service_connection # required ssh_key_enabled: false - timeout_in_minutes: 60 + timeout_in_minutes: 60 # if not specified, default is 60