-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Keep-Alive Backend Connections on Ingress
Previously the HTTP connections to the backend were not kept alive. So the performance of many small reads suffered. See the difference in docs/performance/load-testing.md
- Loading branch information
1 parent
3bc5675
commit 2a3005c
Showing
7 changed files
with
69 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
.PHONY: fmt lint test-coverage cloc-prod cloc-test | ||
run-read-single-patient: | ||
TZ=UTC k6 run --out json=/tmp/test-results.json --no-summary read-single-patient.js | ||
|
||
report: | ||
./report.sh /tmp/test-results.json | ||
|
||
.PHONY: fmt lint test-coverage cloc-prod cloc-test run-read-single-patient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ inputs | select( | ||
.type == "Point" and | ||
.metric == "http_req_duration" and | ||
.data.tags.vus_active == "16" and | ||
.data.tags.name == "everything" and | ||
.data.tags.status == "200" | ||
).data ] as $data | [ $data[].value ] | sort as $durations | | ||
{ | ||
"req_s": (length / (($data[-1].time[:19] + "Z") | fromdate - (($data[0].time[:19] + "Z") | fromdate))), | ||
"cnt": length, | ||
"med": $durations[(length * 0.5) | round], | ||
"q95": $durations[(length * 0.95) | round], | ||
"q99": $durations[(length * 0.99) | round] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
RESULTS_FILE="$1" | ||
|
||
jq -f http-req-duration.jq "$RESULTS_FILE" |