VM disk size libation in specific regions - google-cloud-platform

I am trying to increase disk size of my VM and apparently its not allowed ti increase to more than 250GB in my region. Is this known problem? It's not very much. Any suggestions how to increase more?
Failed to update disk instance-1: Quota 'SSD_TOTAL_GB' exceeded. Limit: 250.0 in region europe-west4.

There's different quotas per project and per region that may apply.
I suggest you to take a look at your actual usage as described in the official documentation, substituting the relevant values:
gcloud compute project-info describe --project <PROJECT_ID>
gcloud compute regions describe <REGION>
In your case, you should look for the SSD_TOTAL_GB metric in the results.
If you need an increase in the quota, you can also request it as specified here or accessing directly to your console via this link.

Related

Starting a GPU instance on Google Cloud Compute

I am trying to set up a GPU instance on Google Compute Cloud like this
gcloud compute instances create another-ubuntu-instance \
--maintenance-policy TERMINATE --restart-on-failure \
--image-project=ubuntu-os-cloud \
--image-family=ubuntu-2004-lts --machine-type=a2-highgpu-1g --zone europe-west4-b
but I get an error message:
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'NVIDIA_A100_GPUS' exceeded. Limit: 0.0 in region europe-west4.
even though I have a quota (I think):
So, what am I doing wrong?
You can check your quotas in a particular region for active project using this command:
gcloud compute regions describe europe-west4 | grep -1 A100
To read more about GPU quotas please see here
To answer you last verification, here are some documentation that might explain the error you are experiencing.
If you are you using one of the Google Cloud's Free program there are limitations and conditions for each program.
For more information regarding GPU that are available for Compute Engine and Graphics workload, also in what region and zone they are available.
And as discussed in my comment above, you can request a quota increase to Google

Creating new GCP serverless vpc access connection, Error: Insufficient CPU quota in region

I'm trying to create GCP serverless vpc access connection for my cloud functions.
The error message is at below
So i checked quota of my project. and my quota is at below
At first, I didn't have any VM instances so there was no cpu usage.
After, I create new VM instance, 8 quotas of CPUs are created. Still, it makes same error.
Do i need to use other type of cpu for VPC connection?
please share you knowledge. thank you.
The error is quite specific and the root cause is the Quota of CPU. There are two possible reasons for this issue and two possible solutions.
First possible issue is the connectors being created using the gcloud command exceeded the CPU quota of your project. The second is there may be existing CPU resource hidden on your project that needs to be removed.
First solution is to change the Gcloud command you are using with lower --max-instances as additional parameter to lower the number of instance being created.
Second possible solution is QIR (Quota Increase Request), Requesting a quota increase is free of charge. It will only cost more if you uses more resource from your request. For detailed instructions on how to increase quota from the Google Cloud Console, see Requesting a higher quota limit.
You can learn more about CPU Quota's here.

ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally

I would like to try PEGASUS to summarize article.
https://github.com/google-research/pegasus
I followed this instruction.
https://github.com/google-research/pegasus/tree/f76b63c2886748f7f5c6c9fb547456d8c6002562#setup
I checked the region which I can use NVIDIA Tesla V100 and I decided to use us-central1-a
https://cloud.google.com/compute/docs/gpus
I used this command.
gcloud compute instances create pegasustest --zone=us-central1-a
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
I got this error message.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/covid19agent/zones/us-central1-a' does not have enough
resources available to fulfill the request.
Try a different zone, or try again later.
I took 3 hours and tried again, but I got the same result.
So, I changed the region from us-central1-a to asia-east1-c.
I used this command.
gcloud compute instances create pegasustest --zone=asia-east1-c
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
Then I got this error message.
WARNING: Some requests generated warnings:
- Disk size: '500 GB' is larger than image size: '10 GB'.
You might need to resize the root repartition manually
if the operating system does not support automatic resizing.
See https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd
for details.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
Is it impossible for me to try PEGASUS? And, does it cost too much to try PEGASUS?
Let's start with the first issue. Have a look again at the error message:
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/covid19agent/zones/us-central1-a' does not have enough resources available to fulfill the request. Try a different
zone, or try again later.
When you start an instance it requests resources like vCPU, memory, GPU and if there's not enough resources available in the zone you'll get such message, more information available in the documentation:
If you receive a resource error (such as ZONE_RESOURCE_POOL_EXHAUSTED
or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS) when requesting new
resources, it means that the zone cannot currently accommodate your
request. This error is due to Compute Engine resource obtainability,
and is not due to your Compute Engine quota.
Resource availability are depending from users requests and therefore are dynamic.
There are a few ways to solve this issue:
Wait for a while and try to start your VM instance again (as you tried, but fruitless this time).
Move your instance to another zone (as you did).
Reserve resources for your VM by following documentation to avoid such issue in future:
Create reservations for Virtual Machine (VM) instances in a specific
zone, using custom or predefined machine types, with or without
additional GPUs or local SSDs, to ensure resources are available for
your workloads when you need them. After you create a reservation, you
begin paying for the reserved resources immediately, and they remain
available for your project to use indefinitely, until the reservation
is deleted.
Now, let's have a look at the second issue. Have a look again at this error message:
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
More information about quotas you can find in the documentation.
To solve this issue you should follow steps below:
Ensure that billing is enabled for your project.
Request an increase in quota:
Go to the Quotas page.
In the Quotas page, select the quotas you want to change.
Click the Edit Quotas button on the top of the page.
Check the box of the service you want to edit.
Fill out your name, email, and phone number, and click Next.
Enter your request to increase your quota, and click Next.
Submit your request.
A request to decrease quota is rejected by default. If you must reduce your quota, reply to the support email with an explanation of
your requirements. A support representative from the Compute Engine
team will respond to your request within 24 to 48 hours.
You're not able to request an increase in quota if you use 12-month, $300 free trial because of the limitations:
Your free trial credit applies to all Google Cloud resources, with the
following exceptions:
You can't have more than 8 cores (or virtual CPUs) running at the same time.
You can't add GPUs to your VM instances.
You can't request a quota increase. For an overview of Compute Engine quotas, see Resource quotas.
You can't create VM instances that are based on Windows Server images.
You must upgrade your account to perform any of the actions in
the preceding list.
You can estimate cost of usage with Google Cloud Pricing Calculator.

GKE: Insufficient regional quota to satisfy request: resource "IN_USE_ADDRESSES"

I'm trying to create a GKE cluster using:
gcloud container clusters create mycluster --region europe-west1
but I'm having an error:
ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient regional quota to satisfy request: resource "IN_USE_ADDRESSES": request requires '9.0' and is short '1.0'. project has a quota of '8.0' with '8.0' available. View and manage quotas at https://console.cloud.google.com/iam-admin/quotas?usage=USED&project=myproject-xxxx.
It seems that there's a problem with the limit of the resource IN_USE_ADDRESSES. This is weird because the project is new therefore I don't have any resource except the cluster I want to crate. I have a second project in which I deployed a postgres DB. Nothing more.
When I visit the quota page, it seems that I didn't exceed any limit.
Your help will be appreciated.
I had this same problem, by default the number of nodes created by the gcloud container clusters create command is 3 and it seems there is 3 static address allocated for each node.
If you really don't need all those static addresses you can specify 2 nodes which should only allocate 6 static addresses via the --num-nodes switch eg.
gcloud container clusters create <cluster-name> --num-nodes=2
IN_USE_ADDRESSES means both static and ephemeral IP addresses. To create your cluster requires a total of 9 (which includes all of your services in the region) but your quota only allows for 8 addresses total.
Solution: Request a quota increase. Follow this link to understand how to request a quota link. A quota increase is requested in the Google Cloud Console. Tip: Increase both global and regional. This will cover load balancers in the future (and other services that use Global IP addresses).
Request a quota increase from the GCP support team. Or reduce the number of nodes you are creating, gcloud container clusters create --name --num-nodes (e.g 2) --zone (choose a zone)... alternatively you can set a zone to use, i.e, gcloud config set compute/zone (your chosen zone), this way you dont have to keep on updating the zone you want to create your infra in.
you also need to choose a zone for the cluster, use gcloud container clusters create [insert cluster name here] --num-nodes 3 --zone us-central1-f(or any zone you want)...by using the region, if you specify 2 nodes, in every zone 2nodes will be provided thats why you are exceeding the quota...

Starting VM instance 'instance-1' failed. Error: Quota 'CPUS' exceeded. Limit: 72.0 in region us-central1

I'm trying to set up a Compute Engine instance on GCP with 96 vCPUs as a test. So I started with the smallest instance possible, prepared my environment for the processing and then edited the instance to this:
n1-highcpu-96 (96 vCPUs, 86.4 GB memory)
But then, when I started the instance, I got this error:
Starting VM instance 'instance-1' failed. Error: Quota 'CPUS' exceeded. Limit: 72.0 in region us-central1.
So, my first question is, is this quota specific to me? Or anyone else who tries the same configuration will face the same error? I'm asking this because I'm using the promotion that GCP provides for new users and I thought this might be a limitation for promotion period.
After doing some research I came across this command to show the quota for different regions:
gcloud compute regions describe us-central1
And I ran it for the complete list of regions. Some regions were limited to 24 and the maximum number I've got was 72.
quotas:
- limit: 72.0
metric: CPUS
usage: 0.0
So, how can I have an instance with 96 cores?
Those limits for vCPUs are the soft limits, the hard limits are specified here.
To be granted one, you must submit a quota increase request for the number of vCPUs you want in the location, justifying in the process, why do you need it.
If the request is approved, you will be allowed to run a 96 vCPU GCE instance in the region. Keep in mind that currently, the only exception is the region southamerica-east1, in which you can only have up to 64 vCPUs.