Hello,
We have the following setup for tyk in AWS
m4.xlarge for the redis and mongodb boxes; c4.xlarge for the others; all in us-west-2a (same AZ); all in the same VPC
- tyk gateway on one ec2 instance 2) tyk pump and dashboard on another ec2 instance
- 3 nginx upstreams setup on upstream hosts
- mongodb on another ec2 instance
- redis on another ec2 instance
We are running load test using apache benchmark command similar to this :
ab -c 100 -e output/tyk-2.2017-01-26T05:36:49+0000.c10-keepalive.csv -t 30 -k http://tyk-2:8080/upstream/
We are observing high latency for tyk compared to other gateways that we have setup in AWS.
It seems way off than the benchmarks posted. Are we missing something in the setup ?
Done! ============ Results ==============
Testing tyk-2 with concurrency 100 (started at 2017-01-26T05:39:26+0000)
output/tyk-2.2017-01-26T05:39:26+0000.c100.txt
Complete requests 32780
Failed requests 0
Requests per second 1092.01 [#/sec] (mean)
50 %ile (ms) 12.524
66 %ile (ms) 16.443
75 %ile (ms) 24.620
80 %ile (ms) 34.217
90 %ile (ms) 220.688
95 %ile (ms) 503.755
98 %ile (ms) 1082.949
99 %ile (ms) 1267.516
100 %ile (ms) 15052.472
Testing tyk-2 with concurrency 100 -keepalive (started at 2017-01-26T05:39:56+0000)
output/tyk-2.2017-01-26T05:39:56+0000.c100-keepalive.txt
Complete requests 31877
Failed requests 0
Requests per second 1062.55 [#/sec] (mean)
50 %ile (ms) 12.403
66 %ile (ms) 16.238
75 %ile (ms) 22.344
80 %ile (ms) 28.235
90 %ile (ms) 207.803
95 %ile (ms) 467.641
98 %ile (ms) 1444.592
99 %ile (ms) 1874.346
100 %ile (ms) 3942.286
Thanks,
Namrata