$ cat post.lua
wrk.method = "POST"
wrk.body = '{"common_name": "exampleservice.local.com"}'
wrk.headers["Content-Type"] = "application/json"
wrk.headers["X-Vault-Token"] = "7748fe79-61d7-81bc-03c9-8890918a9473"
0. Running with 1 thread and 1 connection for 1 second -
$ wrk -t1 -c1 -d1s --timeout 1s -s post.t2small.lua https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
Running 1s test @ https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
1 threads and 1 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 249.09ms 69.83ms 310.67ms 66.67%
Req/Sec 3.67 1.15 5.00 66.67%
3 requests in 1.00s, 14.15KB read
Requests/sec: 3.00
Transfer/sec: 14.14KB
$ wrk -t1 -c1 -d1s --timeout 1s -s post.lua https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
Running 1s test @ https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
1 threads and 1 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 239.77ms 103.09ms 381.69ms 75.00%
Req/Sec 5.00 3.56 10.00 75.00%
4 requests in 1.00s, 18.91KB read
Requests/sec: 3.99
Transfer/sec: 18.86KB
1. Running with 20 threads and 20 connections for 20 seconds-
$ wrk -t20 -c20 -d20s --timeout 20s -s post.t2small.lua https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
Running 20s test @ https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
20 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 5.68s 2.40s 12.19s 65.45%
Req/Sec 0.00 0.00 0.00 100.00%
55 requests in 20.10s, 259.53KB read
Requests/sec: 2.74
Transfer/sec: 12.91KB
$ wrk -t20 -c20 -d20s --timeout 20s -s post.lua https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
Running 20s test @ https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
20 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 4.74s 2.50s 16.15s 76.81%
Req/Sec 0.00 0.00 0.00 100.00%
68 requests in 20.05s, 321.41KB read
Requests/sec: 3.39
Transfer/sec: 16.03KB
$ wrk -t50 -c50 -d20s --timeout 20s -s post.t2small.lua https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
Running 20s test @ https://vault-t2small.local.com:8200/v1/pki/issue/exampleservice
50 threads and 50 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 10.20s 3.36s 17.46s 65.22%
Req/Sec 0.00 0.00 0.00 100.00%
46 requests in 20.10s, 217.07KB read
Requests/sec: 2.29
Transfer/sec: 10.80KB
$ wrk -t50 -c50 -d20s --timeout 20s -s post.lua https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
Running 20s test @ https://vault-m4large.local.com:8200/v1/pki/issue/exampleservice
50 threads and 50 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 8.14s 3.10s 15.36s 71.43%
Req/Sec 0.00 0.00 0.00 100.00%
42 requests in 20.10s, 198.52KB read
Socket errors: connect 29300, read 50, write 0, timeout 0
Requests/sec: 2.09
Transfer/sec: 9.88KB
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/8476a11f-7b15-43d0-844f-d779ce218ae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/6bc775c7-55fc-4fe4-a65f-f3a2dd0c7293%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
$ab -k -p post.json -T application/json -H "X-Vault-Token: fb0cca83-f22c-5049-16b8-e2d343395d2f" -c 50 -n 50 -t 20 -v 2 https://vault-m42xlarge.local.com:8200/v1/pki/issue/exampleservice > ab-c50-n50-dynamo-k.log 2>&1
Server Software:
Server Hostname: vault-m42xlarge.local.com
Server Port: 8200
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Document Path: /v1/pki/issue/exampleservice
Document Length: 4478 bytes
Concurrency Level: 50
Time taken for tests: 20.089 seconds
Complete requests: 267
Failed requests: 141
(Connect: 0, Receive: 0, Length: 141, Exceptions: 0)
Write errors: 0
Keep-Alive requests: 0
Total transferred: 1226353 bytes
Total body sent: 95130
HTML transferred: 1196182 bytes
Requests per second: 13.29 [#/sec] (mean)
Time per request: 3761.926 [ms] (mean)
Time per request: 75.239 [ms] (mean, across all concurrent requests)
Transfer rate: 59.62 [Kbytes/sec] received
4.62 kb/s sent
64.24 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 6 164 88.9 173 536
Processing: 271 3127 1567.2 2818 9135
Waiting: 267 3127 1567.1 2818 9135
Total: 277 3291 1576.8 2980 9328
Percentage of the requests served within a certain time (ms)
50% 2980
66% 3643
75% 4084
80% 4357
90% 5530
95% 6457
98% 7665
99% 8025
$grep "HTTP/1.0 200 OK" ab-c50-n50-dynamo-k.log
267
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/25f6daf0-157a-428e-bb9b-d0ebda80f6f0%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/11fc645d-3b43-4afe-a6c5-6a4b08049178%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/a959caa3-89f2-4fa1-a4df-7db36e125dd6%40googlegroups.com.