
저는 API(nodejs로 구축)가 있고 docker 이미지를 사용하여 kubernetes 클러스터에 배포했습니다.
기본 경로의 경우 간단히 메시지를 반환합니다 Hello World QA!
.
이 GET 요청의 응답 시간을 테스트하고 있는데 가끔 무작위로 요청 중 하나가 다른 요청보다 훨씬 오래 걸리는 것을 확인했습니다. 예:
Cristians-MBP:google_cloud cristiboariu$ curl -X GET "http://35.230.22.104:8000" -w "@curl-format.txt" -s
Hello World QA!time_namelookup: 0.005095
time_connect: 0.203066
time_appconnect: 0.000000
time_pretransfer: 0.203164
time_redirect: 0.000000
time_starttransfer: 0.420915
----------
time_total: 0.421004
Cristians-MBP:google_cloud cristiboariu$ curl -X GET "http://35.230.22.104:8000" -w "@curl-format.txt" -s
Hello World QA!time_namelookup: 0.005164
time_connect: 0.236487
time_appconnect: 0.000000
time_pretransfer: 0.236551
time_redirect: 0.000000
time_starttransfer: 0.449582
----------
time_total: 0.449632
Cristians-MBP:google_cloud cristiboariu$ curl -X GET "http://35.230.22.104:8000" -w "@curl-format.txt" -s
Hello World QA!time_namelookup: 0.005092
time_connect: 0.214788
time_appconnect: 0.000000
time_pretransfer: 0.214851
time_redirect: 0.000000
time_starttransfer: 0.419028
----------
time_total: 0.419075
Cristians-MBP:google_cloud cristiboariu$ curl -X GET "http://35.230.22.104:8000" -w "@curl-format.txt" -s
Hello World QA!time_namelookup: 0.005099
time_connect: 1.009918
time_appconnect: 0.000000
time_pretransfer: 1.009983
time_redirect: 0.000000
time_starttransfer: 3.137044
----------
time_total: 3.137087
이는 여기에 호스팅된 모든 엔드포인트에서 발생합니다. 나는 원인이 무엇인지 모릅니다. 누구든지 도와주실 수 있나요?