Add GOMAXPROCS benchmark setup#8172
Conversation
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
|
This PR introduces a new benchmark setup to demonstrate the performance impact of the A new directory, Files Changed Analysis
All files are new additions and are scoped to the Architecture & Impact Assessment
Here is a visualization of the benchmark setup: graph TD
subgraph "Benchmark Environment"
LoadGenerator(Load Generator e.g., hey, k6) --> GW1
LoadGenerator --> GW2
LoadGenerator --> GW3
subgraph "Docker Compose Services"
GW1["gateway-1cpu-1gmp<br/>CPU Limit: 1<br/>GOMAXPROCS=1"] --> Upstream
GW2["gateway-2cpu-2gmp<br/>CPU Limit: 2<br/>GOMAXPROCS=2"] --> Upstream
GW3["gateway-2cpu-unset<br/>CPU Limit: 2<br/>GOMAXPROCS=unset"] --> Upstream
GW1 --> Redis
GW2 --> Redis
GW3 --> Redis
Redis(Redis)
Upstream(httpbin)
end
end
Scope Discovery & Context ExpansionThe changes are entirely self-contained within the new Metadata
Powered by Visor from Probelabs Last updated: 2026-04-30T04:58:43.434Z | Triggered by: pr_opened | Commit: 764a6e9 💡 TIP: You can chat with Visor using |
Security Issues (3)
Architecture Issues (1)
Performance Issues (1)
Powered by Visor from Probelabs Last updated: 2026-04-30T04:58:05.108Z | Triggered by: pr_opened | Commit: 764a6e9 💡 TIP: You can chat with Visor using |
|



Problem / Task
The user requested a benchmark setup to demonstrate the effect of the
GOMAXPROCSenvironment variable on Tyk Gateway performance when running with CPU limits.Changes
benchmarks/gomaxprocs/docker-compose.ymlwith 3 gateway services:gateway-1cpu-1gmp: 1 CPU limit, GOMAXPROCS=1gateway-2cpu-2gmp: 2 CPU limit, GOMAXPROCS=2gateway-2cpu-unset: 2 CPU limit, GOMAXPROCS unsethttpbin).tyk.conffor the gateways.README.mdexplaining how to run the benchmark.Testing
docker-compose up -d.GOMAXPROCSenvironment variable is correctly set in the containers.