Nicster15
Nicster15

Reputation: 169

GCP / Finding Zone Resource Status

I'm using the Google Cloud Platform for a project of mine and utilize preemptibile instances, meaning my instances restart once every 24h. Every few weeks I encounter an issue where my instances are all offline and can't boot up as all the resources in that zone (us-east1) are occupied.

I've tried looking all over for a tool but can't find any so I decided to ask here: is there a way to see which zones are full and which aren't? It doesn't matter if it's a website or a command, I just need something to look at to determine which zone to move my instances to while my main zone is full and possibly hook into that and automate it.

Also, the following command doesn't work as it doesn't provide the resource status of each zone.

gcloud compute zones list

Thank you!

Upvotes: 2

Views: 676

Answers (2)

mdnfiras
mdnfiras

Reputation: 959

I guess the only way is to attempt to get an instance in a zone, and if you get that error about resources exhausted then you know you have to try another zone.

Upvotes: 0

suren
suren

Reputation: 8786

You definitely can't get that information.

Upvotes: 2

Related Questions