"gcloud compute instances list" takes too long

100 views
Skip to first unread message

Faraz Hussain

unread,
Nov 29, 2017, 3:23:22 PM11/29/17
to gce-discussion
I am creating a health web page for my GCE instances. The problem is the page takes many seconds to load because this command takes a while:

gcloud compute instances list

I would think this is just querying some database, so not sure why it takes so long. Here's my health page so you can experience the long load time:

http://173.3.250.12/health.php

Carlos (Cloud Platform Support)

unread,
Nov 29, 2017, 7:53:06 PM11/29/17
to gce-discussion
It does not seems that the IP where you are running the application belongs to Google. In that sense the problem could be a networking delay. To discard it, you could try to run the command directly from different locations (including a Google instance) to compare response times.   

Faraz Hussain

unread,
Nov 29, 2017, 9:33:39 PM11/29/17
to gce-discussion
 Good idea to try it from a google vm. I tried it from my micro instance and it took around 1.5 seconds on average. From my home machine it takes 3 seconds on average. So I guess there is some networking delay.
Reply all
Reply to author
Forward
0 new messages