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

added load tests for vpa #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

swastik959
Copy link

adds load test by making post requests for the vpa

output of kyverno-vpa.js-25vu-500it-logs.txt

  execution: local
     script: /script/script.js
     output: -

  scenarios: (100.00%) 1 scenario, 25 max VUs, 10m30s max duration (incl. graceful stop):
           * default: 500 iterations shared among 25 VUs (maxDuration: 10m0s, gracefulStop: 30s)

     ✓ verify response code of POST VPA is 201

     █ teardown

     checks.........................: 100.00% ✓ 500        ✗ 0
     data_received..................: 437 kB  659 kB/s
     data_sent......................: 188 kB  284 kB/s
     http_req_blocked...............: avg=1.18ms   min=327ns   med=647ns   max=59.76ms p(90)=999ns    p(95)=370.63µs
     http_req_connecting............: avg=51.2µs   min=0s      med=0s      max=1.95ms  p(90)=0s       p(95)=7.14µs
     http_req_duration..............: avg=30.47ms  min=7.72ms  med=28.92ms max=72.06ms p(90)=38ms     p(95)=44.23ms
       { expected_response:true }...: avg=30.47ms  min=7.72ms  med=28.92ms max=72.06ms p(90)=38ms     p(95)=44.23ms
     http_req_failed................: 0.00%   ✓ 0          ✗ 500
     http_req_receiving.............: avg=439.68µs min=26.3µs  med=76.77µs max=16.69ms p(90)=920.41µs p(95)=2.41ms
     http_req_sending...............: avg=312.2µs  min=45.37µs med=80.72µs max=28.97ms p(90)=544.57µs p(95)=1.07ms
     http_req_tls_handshaking.......: avg=1.07ms   min=0s      med=0s      max=53.6ms  p(90)=0s       p(95)=292.54µs
     http_req_waiting...............: avg=29.72ms  min=7.6ms   med=28.53ms max=67.71ms p(90)=36.72ms  p(95)=43.3ms
     http_reqs......................: 500     753.227004/s
     iteration_duration.............: avg=32.3ms   min=2.08µs  med=29.66ms max=91.97ms p(90)=43.73ms  p(95)=54.22ms
     iterations.....................: 500     753.227004/s
running (00m00.7s), 00/25 VUs, 500 complete and 0 interrupted iterations
default ✓ [ 100% ] 25 VUs  00m00.7s/10m0s  500/500 shared iters

Signed-off-by: swastik959 <Sswastik959@gmail.com>
@KhaledEmaraDev
Copy link
Collaborator

Good job writing your first test.
I think we want to test how the VPA would respond to another Pod being load tested. We don;t want to load test the API Server by creating a lot of VPAs.

@KhaledEmaraDev KhaledEmaraDev self-requested a review March 28, 2024 23:42
Signed-off-by: swastik959 <Sswastik959@gmail.com>
@swastik959
Copy link
Author

@KhaledEmaraDev please review it now if this is what you actually wanted ?

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.

2 participants