Warum hat dieselbe Anfrage unterschiedliche Antwortzeiten?

Warum hat dieselbe Anfrage unterschiedliche Antwortzeiten?

Ich habe eine API (erstellt mit Node.js) und sie mithilfe eines Docker-Image auf einem Kubernetes-Cluster bereitgestellt.

Für die Standardroute gebe ich einfach eine Hello World QA!Nachricht zurück.

Ich teste die Antwortzeiten dieser GET-Anfrage und stelle fest, dass gelegentlich eine der Anfragen VIEL länger dauert als andere, z. B.:

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

Dies passiert bei JEDEM hier gehosteten Endpunkt. Ich weiß einfach nicht, was die Ursache sein kann. Kann mir bitte jemand helfen?

verwandte Informationen