Skip to content

Commit 0916357

Browse files
authored
Fork tweak (#622)
* Test without fork * Try 2 * Try 2 * Conditional fork * Fix * Try
1 parent 1ebc6f8 commit 0916357

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/benchmark.template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525
cpuLimit:
2626
type: string
2727
required: true
28+
fork:
29+
type: string
30+
required: true
2831
memoryLimit:
2932
type: string
3033
required: true
@@ -73,6 +76,7 @@ jobs:
7376
BENCH_OVER_TIME: ${{ inputs.time }}
7477
MEM_LIMIT: ${{ inputs.memoryLimit }}
7578
CPU_LIMIT: ${{ inputs.cpuLimit }}
79+
FORK: ${{ inputs.fork }}
7680

7781
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7882
if: always()

.github/workflows/federation-v1.workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
scenarioName: constant-vus-over-time
4545
runner: ${{ needs.decide-runner.outputs.runner }}
4646
cpuLimit: 2
47+
fork: 2
4748
memoryLimit: 4gb
4849

4950
constant-vus-over-time-report:
@@ -80,6 +81,7 @@ jobs:
8081
scenarioName: constant-vus-subgraphs-delay
8182
runner: ${{ needs.decide-runner.outputs.runner }}
8283
cpuLimit: 2
84+
fork: 2
8385
memoryLimit: 4gb
8486
subgraphDelayRange: "40~150"
8587

@@ -117,6 +119,7 @@ jobs:
117119
scenarioName: constant-vus-subgraphs-delay-resources
118120
runner: ${{ needs.decide-runner.outputs.runner }}
119121
cpuLimit: 4
122+
fork: 3
120123
memoryLimit: 8gb
121124
subgraphDelayRange: "40~150"
122125

@@ -154,6 +157,7 @@ jobs:
154157
scenarioName: ramping-vus
155158
runner: ${{ needs.decide-runner.outputs.runner }}
156159
cpuLimit: 4
160+
fork: 3
157161
memoryLimit: 8gb
158162

159163
ramping-vus-report:

federation/gateways/hive-gateway-bun/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
- "0.0.0.0:4000:4000"
99
environment:
1010
- NODE_ENV=production
11+
- FORK=${FORK}
12+
- JIT=true
1113
depends_on:
1214
accounts:
1315
condition: service_healthy

federation/gateways/hive-gateway/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
- "0.0.0.0:4000:4000"
99
environment:
1010
- NODE_ENV=production
11+
- FORK=${FORK}
12+
- JIT=true
1113
depends_on:
1214
accounts:
1315
condition: service_healthy

0 commit comments

Comments
 (0)