# Load test configurations generated from a template by loadtest_config.py.
# See documentation below:
# https://github.com/grpc/grpc/blob/master/tools/run_tests/performance/README.md#grpc-oss-benchmarks
apiVersion: e2etest.grpc.io/v1
kind: LoadTest
metadata:
  annotations:
    scenario: go_protobuf_sync_unary_qps_unconstrained_secure
    uniquifier: ''
  labels:
    language: go
    prefix: arjansbal
  name: arjansbal-go-protobuf-sync-unary-qps-unconstrained-secure
spec:
  clients:
  - language: go
    name: '0'
    pool: workers-c2-30core
    run:
    - args:
      - -c
      - |
        timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
            /executable/bin/worker \
            --driver_port="${DRIVER_PORT}"
      command:
      - bash
      image: us-central1-docker.pkg.dev/arjan-cdf/arjansbal/go-bench:latest
      name: main
  driver:
    language: cxx
    name: '0'
    pool: drivers
    run:
    - image: us-docker.pkg.dev/grpc-testing/e2etest/driver:v1.5.7
      name: main
  results:
    bigQueryTable: e2e_benchmarks.experimental_results
  scenariosJSON: |
    {
      "scenarios": {
        "name": "go_protobuf_sync_unary_qps_unconstrained_secure",
        "num_servers": 1,
        "num_clients": 0,
        "client_config": {
          "client_type": "SYNC_CLIENT",
          "security_params": {
            "use_test_ca": true,
            "server_host_override": "foo.test.google.fr"
          },
          "outstanding_rpcs_per_channel": 100,
          "client_channels": 1,
          "async_client_threads": 0,
          "client_processes": 0,
          "threads_per_cq": 0,
          "rpc_type": "UNARY",
          "histogram_params": {
            "resolution": 0.01,
            "max_possible": 60000000000.0
          },
          "channel_args": [
            {
              "name": "grpc.optimization_target",
              "str_value": "throughput"
            }
          ],
          "payload_config": {
            "simple_params": {
              "req_size": 1048576,
              "resp_size": 1048576
            }
          },
          "load_params": {
            "closed_loop": {}
          }
        },
        "server_config": {
          "server_type": "SYNC_SERVER",
          "security_params": {
            "use_test_ca": true,
            "server_host_override": "foo.test.google.fr"
          },
          "async_server_threads": 0,
          "server_processes": 0,
          "threads_per_cq": 0,
          "channel_args": [
            {
              "name": "grpc.optimization_target",
              "str_value": "throughput"
            }
          ]
        },
        "warmup_seconds": 5,
        "benchmark_seconds": 30
      }
    }
  servers:
  - language: go
    name: '0'
    pool: workers-c2-30core
    run:
    - args:
      - -c
      - |
        timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
            /executable/bin/worker \
            --driver_port="${DRIVER_PORT}"
      command:
      - bash
      image: us-central1-docker.pkg.dev/arjan-cdf/arjansbal/go-bench:latest
      name: main
  timeoutSeconds: 300
  ttlSeconds: 86400

