@@ -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