Hi Karen
Sorry for replying so late. I dont think i got the email when you replied.
We have one server running the killbill containers
p-killbill01
And another running a reverseproxy via nginx
p-proxy-i with domain
killbill.dk-tv.netthis is my test curl to test the speed.
curl -w 'Testing Website Response Time for :%{url_effective}\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' \
-u xxx:xxx \
-H "X-Killbill-ApiKey: xxx" \
-H "X-Killbill-ApiSecret: xxx" \
-H "Accept: application/json" \
-o /dev/null \
'
https://killbill.dk-tv.net:8080/1.0/kb/subscriptions?externalKey=1934614'
Doing a curl on p-proxy-i(https) to
killbill.dk-tv.net gives me this (1,5 - 1,8s)
Lookup Time: 0.003162
Connect Time: 0.003570
Pre-transfer Time: 0.044797
Start-transfer Time: 1.605804
Total Time: 1.606888
Doing a curl on p-proxy-i(https) to p-killbill01 gives me the same (1,5 - 1,8s)
Lookup Time: 0.003530
Connect Time: 0.005144
Pre-transfer Time: 0.059687
Start-transfer Time: 1.623905
Total Time: 1.624415
Doing curl on p-killbill01 to p-killbill01 is also the same
Lookup Time: 0.005528
Connect Time: 0.006114
Pre-transfer Time: 0.118487
Start-transfer Time: 1.611047
Total Time: 1.611436
p-killbill01 is running nginx listning to 8080 on https and passing it on to the killbill containers as http also on port 8080
entering the nginx container and running the curl against killbill:8080 gives me the same
Lookup Time: 0.014816
Connect Time: 0.015588
Pre-transfer Time: 0.016235
Start-transfer Time: 1.564737
Total Time: 1.565089
entering one of the killbil containers and running curl against localhost is also the same
Lookup Time: 0.006815
Connect Time: 0.007471
Pre-transfer Time: 0.007836
Start-transfer Time: 1.575847
Total Time: 1.576454
so just wanted to be sure that it wasnt related to my reverseproxy setup
To answer your original question it seems like its the same error on all the containers.
I have 6 running and have run this script
for i in {1..6}; do echo killbill_$i ; docker exec killbill_$i curl -s -w '%{time_total}\n' -u xxx:xxx -H "X-Killbill-ApiKey: xxx" -H "X-Killbill-ApiSecret: xxx" -H "Accept: application/json" -o /dev/null '
http://localhost:8080/1.0/kb/subscriptions?externalKey=1934614'
; done
killbill_1
1.561865
killbill_2
1.642079
killbill_3
1.541519
killbill_4
1.546816
killbill_5
1.512320
killbill_6
1.672892
Another aspect is that i have 3 environment. All duplicated with seperate database, application servers and reverseproxys.
The above is in production, on qa and staging the time is around 0.3-0.4s