Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup clustering #530

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

Aviortheking
Copy link
Member

@Aviortheking Aviortheking commented Aug 30, 2024

Tests using k6 confirm that clustering is way better to handle more traffic on the server

http_req_duration goes from 6s to 438ms (when ~1000 connections are being done at the same time) allowing the server to handle from ~300req/s to ~1500req/s

Before

metricavgmaxmedminp90p95p99
http_req_blocked11µs59ms2µs1µs4µs6µs174µs
http_req_connecting7µs59ms0ms0ms0ms0ms126µs
http_req_duration2s9s2s2ms3s6s6s
http_req_receiving40µs1ms38µs14µs55µs63µs88µs
http_req_sending12µs716µs11µs3µs18µs23µs36µs
http_req_tls_handshaking0ms0ms0ms0ms0ms0ms0ms
http_req_waiting2s9s2s2ms3s6s6s
iteration_duration2s9s3s503ms4s6s6s

After

metricavgmaxmedminp90p95p99
http_req_blocked7µs113ms2µs920ns4µs5µs15µs
http_req_connecting3µs113ms0ms0ms0ms0ms0ms
http_req_duration112ms960ms79ms4ms269ms327ms438ms
http_req_receiving55µs60ms39µs9µs68µs120µs340µs
http_req_sending14µs24ms10µs3µs17µs22µs81µs
http_req_tls_handshaking0ms0ms0ms0ms0ms0ms0ms
http_req_waiting112ms960ms79ms4ms269ms327ms438ms
iteration_duration613ms1s581ms505ms770ms828ms939ms

k6 config

0s 0vu
1m 1000vu
2m 1000vu
3m 0vu

@Aviortheking Aviortheking force-pushed the feat/add-server-request-count-enhancement branch from 17119d7 to ad111ab Compare August 30, 2024 08:33
Signed-off-by: Avior <[email protected]>
@Aviortheking Aviortheking merged commit ae6ed3c into master Aug 30, 2024
4 checks passed
@Aviortheking Aviortheking deleted the feat/add-server-request-count-enhancement branch August 30, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant