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

     1  # Request benchmark
     2  {{$configMapBytes := DefaultParam .CL2_BENCHMARK_CONFIG_MAP_BYTES 1000}}
     3  {{$configMapGroup := DefaultParam .CL2_BENCHMARK_CONFIG_MAP_GROUP "benchmark-config-map"}}
     4  {{$configMapNumber := DefaultParam .CL2_BENCHMARK_CONFIG_MAP_NUMBER 1}}
     5  {{$benchmarkReplicas := DefaultParam .CL2_BENCHMARK_PODS 1}}
     6  
     7  {{$inflight := DefaultParam .CL2_BENCHMARK_INFLIGHT 10}}
     8  {{$qps := DefaultParam .CL2_BENCHMARK_QPS -1}}
     9  {{$uri := DefaultParam .CL2_BENCHMARK_URI ""}} # URI example: /api/v1/namespaces/%namespace%/pods
    10  
    11  name: Request benchmark
    12  namespace:
    13    number: 1
    14  tuningSets:
    15  - name: Sequence
    16    parallelismLimitedLoad:
    17      parallelismLimit: 10
    18  steps:
    19  - name: Setup permissions
    20    phases:
    21    - namespaceRange:
    22        min: 1
    23        max: 1
    24      tuningSet: Sequence
    25      replicasPerNamespace: 1
    26      objectBundle:
    27      - basename: benchmark-role
    28        objectTemplatePath: cluster-role.yaml
    29    - namespaceRange:
    30        min: 1
    31        max: 1
    32      tuningSet: Sequence
    33      replicasPerNamespace: 1
    34      objectBundle:
    35      - basename: benchmark-role-binding
    36        objectTemplatePath: cluster-role-binding.yaml
    37  - name: Create config map(s)
    38    phases:
    39    - namespaceRange:
    40        min: 1
    41        max: 1
    42      tuningSet: Sequence
    43      replicasPerNamespace: {{$configMapNumber}}
    44      objectBundle:
    45      - basename: {{$configMapGroup}}
    46        objectTemplatePath: configmap.yaml
    47        templateFillMap:
    48          bytes: {{$configMapBytes}}
    49          group: {{$configMapGroup}}
    50  - module:
    51      path: modules/measurements.yaml
    52      params:
    53        name: baseline
    54  - module:
    55      path: modules/benchmark-deployment.yaml
    56      params:
    57        replicas: {{$benchmarkReplicas}}
    58        inflight: {{$inflight}}
    59        uri: {{$uri}}
    60        qps: {{$qps}}
    61  - module:
    62      path: modules/measurements.yaml
    63      params:
    64        name: benchmark
    65  - module:
    66      path: modules/benchmark-deployment.yaml
    67      params:
    68        replicas: 0