Skip to content

Commit 2cb3f8d

Browse files
committed
Adding connection errors & request timeouts
1 parent 5f12154 commit 2cb3f8d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

benchmarks/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,30 @@ scripts:
370370
with:
371371
array: RUN.output.results.${{RUNTIME.name}}.load.throughput
372372
value: ${{THROUGHPUT}}
373+
- sh: cat ${{REPO_DIR}}/logs/wrk-${{RUNTIME.name}}-${{ITERATION}}.log | grep "Socket errors:" | sed -E 's/.*connectionErrors ([0-9]+).*/\1/'
374+
then:
375+
- regex: ^$
376+
then:
377+
- set-state: CONNECTION_ERRORS 0
378+
else:
379+
- set-state: CONNECTION_ERRORS
380+
- script: state-array-push
381+
with:
382+
array: RUN.output.results.${{RUNTIME.name}}.load.connectionErrors
383+
value: ${{CONNECTION_ERRORS}}
384+
385+
- sh: cat ${{REPO_DIR}}/logs/wrk-${{RUNTIME.name}}-${{ITERATION}}.log | grep "Socket errors:" | sed -E 's/.*requestTimeouts ([0-9]+)/\1/'
386+
then:
387+
- regex: ^$
388+
then:
389+
- set-state: REQUEST_TIMEOUTS 0
390+
else:
391+
- set-state: REQUEST_TIMEOUTS
392+
- script: state-array-push
393+
with:
394+
array: RUN.output.results.${{RUNTIME.name}}.load.requestTimeouts
395+
value: ${{REQUEST_TIMEOUTS}}
396+
373397
- sh: pmap -x $APP_PID | grep total | awk '{print $4}'
374398
then:
375399
- set-state: RSS
@@ -395,6 +419,14 @@ scripts:
395419
with:
396420
var-name: RUN.output.results.${{RUNTIME.name}}.load.maxThroughputDensity
397421
array: RUN.output.results.${{RUNTIME.name}}.load.throughputDensity
422+
- script: state-array-calc-avg
423+
with:
424+
var-name: RUN.output.results.${{RUNTIME.name}}.load.avConnectionErrors
425+
array: RUN.output.results.${{RUNTIME.name}}.load.connectionErrors
426+
- script: state-array-calc-avg
427+
with:
428+
var-name: RUN.output.results.${{RUNTIME.name}}.load.avRequestTimeouts
429+
array: RUN.output.results.${{RUNTIME.name}}.load.requestTimeouts
398430

399431
download-metrics:
400432
- sh: mkdir -p ${{METRICS_DIR}}

0 commit comments

Comments
 (0)