k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/windows-tests/config.yaml (about)

     1  # ASSUMPTIONS:
     2  # - This test is designed for 1-node cluster.
     3  
     4  #Constants
     5  {{$POD_COUNT := DefaultParam .CL2_POD_COUNT 80}}
     6  {{$POD_THROUGHPUT := DefaultParam .CL2_POD_THROUGHPUT 0.03}}
     7  {{$CONTAINER_IMAGE := DefaultParam .CL2_CONTAINER_IMAGE "registry.k8s.io/pause:3.9"}}
     8  {{$POD_STARTUP_LATENCY_THRESHOLD := DefaultParam .CL2_POD_STARTUP_LATENCY_THRESHOLD "60m"}}
     9  {{$OPERATION_TIMEOUT := DefaultParam .CL2_OPERATION_TIMEOUT "90m"}}
    10  
    11  name: node-throughput
    12  namespace:
    13    number: {{$POD_COUNT}}
    14  tuningSets:
    15  - name: UniformQPS
    16    qpsLoad:
    17      qps: {{$POD_THROUGHPUT}}
    18  steps:
    19  - measurements:
    20    - Identifier: WindowsResourceUsagePrometheus
    21      Method: WindowsResourceUsagePrometheus
    22      Params:
    23        action: start
    24    - Identifier: APIResponsivenessPrometheusSimple
    25      Method: APIResponsivenessPrometheus
    26      Params:
    27        action: start
    28    - Identifier: PodStartupLatency
    29      Method: PodStartupLatency
    30      Params:
    31        action: start
    32        labelSelector: group = latency
    33        threshold: {{$POD_STARTUP_LATENCY_THRESHOLD}}
    34  - measurements:
    35    - Identifier: WaitForRunningLatencyRCs
    36      Method: WaitForControlledPodsRunning
    37      Params:
    38        action: start
    39        apiVersion: v1
    40        kind: ReplicationController
    41        labelSelector: group = latency
    42        operationTimeout: {{$OPERATION_TIMEOUT}}
    43  - phases:
    44    - namespaceRange:
    45        min: 1
    46        max: {{$POD_COUNT}}
    47      replicasPerNamespace: 1
    48      tuningSet: UniformQPS
    49      objectBundle:
    50      - basename: latency-pod-rc
    51        objectTemplatePath: rc.yaml
    52        templateFillMap:
    53          Replicas: 1
    54          Group: latency
    55          Image: {{$CONTAINER_IMAGE}}
    56  - measurements:
    57    - Identifier: WaitForRunningLatencyRCs
    58      Method: WaitForControlledPodsRunning
    59      Params:
    60        action: gather
    61    - Identifier: WindowsResourceUsagePrometheus
    62      Method: WindowsResourceUsagePrometheus
    63      Params:
    64        action: gather
    65  - phases:
    66    - namespaceRange:
    67        min: 1
    68        max: {{$POD_COUNT}}
    69      replicasPerNamespace: 0
    70      tuningSet: UniformQPS
    71      objectBundle:
    72      - basename: latency-pod-rc
    73        objectTemplatePath: rc.yaml
    74  - measurements:
    75    - Identifier: WaitForRunningLatencyRCs
    76      Method: WaitForControlledPodsRunning
    77      Params:
    78        action: gather
    79  # Collect measurements
    80  - measurements:
    81    - Identifier: PodStartupLatency
    82      Method: PodStartupLatency
    83      Params:
    84        action: gather
    85  - measurements:
    86    - Identifier: APIResponsivenessPrometheusSimple
    87      Method: APIResponsivenessPrometheus
    88      Params:
    89        action: gather
    90        enableViolations: true
    91        useSimpleLatencyQuery: true
    92        summaryName: APIResponsivenessPrometheus_simple