Skip to content

Commit

Permalink
Use bp-runner for trace-agent macrobenchmark (#19778)
Browse files Browse the repository at this point in the history
  • Loading branch information
igoragoli authored Nov 16, 2023
1 parent 2875643 commit 6fb1d05
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions .gitlab/benchmarks/macrobenchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@ variables:
image: $BENCHMARKS_CI_IMAGE
needs: ["setup_agent_version"]
script:
- export ARTIFACTS_DIR="$(pwd)/reports" && (mkdir "${ARTIFACTS_DIR}" || :)
- export DD_API_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.dd_api_key --with-decryption --query "Parameter.Value" --out text)
- git clone --branch trace-agent https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform /platform && cd /platform
- ./steps/capture-hardware-software-info.sh
- git clone --branch trace-agent https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform platform && cd platform
- ./steps/run-benchmarks.sh
- "./steps/upload-results-to-s3.sh || :"
artifacts:
name: "reports"
name: "artifacts"
when: always
paths:
- reports/
- platform/artifacts/
expire_in: 3 months
variables:
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true" # Important tweak for stability of benchmarks
K6_RUN_ID_PREFIX: ci

# Uncomment to force k8s memory limits for CI job container.
# KUBERNETES_MEMORY_REQUEST: "4Gi"
Expand All @@ -37,48 +33,56 @@ variables:
# benchmarks get changed to run on every PR)
allow_failure: true

trace-agent-v04-4cpus-normal_load-fixed_sps-macrobenchmarks:
trace-agent-v04-2cpus-normal_load-fixed_sps:
extends: .trace_agent_benchmarks
variables:
TRACE_AGENT_VERSION: main
TRACE_AGENT_ENDPOINT: v04
TRACE_AGENT_CPUS: 2
TRACE_AGENT_CPUS: 40-41
DD_APM_MAX_CPU_PERCENT: 0
DD_APM_MAX_MEMORY: 0
DD_BENCHMARKS_CONFIGURATION: trace-agent-v04-4cpus-normal_load-fixed_sps
BENCHMARK_TARGETS: "normal_load.*sps"
DD_BENCHMARKS_CONFIGURATION: trace-agent-v04-2cpus-normal_load-fixed_sps
SCENARIOS: >
normal_load-10traces210spans-65ksps|
normal_load-500traces8617spans-65ksps|
normal_load-3885traces3891spans-65ksps
trace-agent-v04-4cpus-stress_load-fixed_sps-macrobenchmarks:
trace-agent-v04-2cpus-stress_load-fixed_sps:
extends: .trace_agent_benchmarks
when: manual
variables:
TRACE_AGENT_VERSION: main
TRACE_AGENT_ENDPOINT: v04
TRACE_AGENT_CPUS: 2
TRACE_AGENT_CPUS: 40-41
DD_APM_MAX_CPU_PERCENT: 0
DD_APM_MAX_MEMORY: 0
DD_BENCHMARKS_CONFIGURATION: trace-agent-v04-4cpus-stress_load-fixed_sps
BENCHMARK_TARGETS: "stress_load.*sps"
DD_BENCHMARKS_CONFIGURATION: trace-agent-v04-2cpus-stress_load-fixed_sps
SCENARIOS: >
stress_load-10traces210spans-525ksps|
stress_load-500traces8617spans-525ksps|
stress_load-3885traces3891spans-525ksps
trace-agent-v05-4cpus-normal_load-fixed_sps-macrobenchmarks:
trace-agent-v05-2cpus-normal_load-fixed_sps:
extends: .trace_agent_benchmarks
variables:
TRACE_AGENT_VERSION: main
TRACE_AGENT_ENDPOINT: v05
TRACE_AGENT_CPUS: 2
TRACE_AGENT_CPUS: 40-41
DD_APM_MAX_CPU_PERCENT: 0
DD_APM_MAX_MEMORY: 0
DD_BENCHMARKS_CONFIGURATION: trace-agent-v05-4cpus-normal_load-fixed_sps
BENCHMARK_TARGETS: "normal_load.*sps"
DD_BENCHMARKS_CONFIGURATION: trace-agent-v05-2cpus-normal_load-fixed_sps
SCENARIO: >
normal_load-10traces210spans-65ksps|
normal_load-500traces8617spans-65ksps|
normal_load-3885traces3891spans-65ksps
trace-agent-v05-4cpus-stress_load-fixed_sps-macrobenchmarks:
trace-agent-v05-2cpus-stress_load-fixed_sps:
extends: .trace_agent_benchmarks
when: manual
variables:
TRACE_AGENT_VERSION: main
TRACE_AGENT_ENDPOINT: v05
TRACE_AGENT_CPUS: 2
TRACE_AGENT_CPUS: 40-41
DD_APM_MAX_CPU_PERCENT: 0
DD_APM_MAX_MEMORY: 0
DD_BENCHMARKS_CONFIGURATION: trace-agent-v05-4cpus-stress_load-fixed_sps
BENCHMARK_TARGETS: "stress_load.*sps"
DD_BENCHMARKS_CONFIGURATION: trace-agent-v05-2cpus-stress_load-fixed_sps
SCENARIOS: >
stress_load-10traces210spans-525ksps|
stress_load-500traces8617spans-525ksps|
stress_load-3885traces3891spans-525ksps

0 comments on commit 6fb1d05

Please sign in to comment.