Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

BATCH - How to manage number of instances

Hi all,

I have enough CPU quota.

When running a job of 22 tasks (~10 min to complete each):

- Parallelism = 22
- Instance type = e2-highcpu-16
- cpu=4 ram=4 per task

I see in the logs there are 4 task in parallel running in just one instance.

Why is there just one instance in the instange group?
Regards

Solved Solved
0 2 239
1 ACCEPTED SOLUTION

I had quota for "all regions" but not for that specific region... that was the problem

View solution in original post

2 REPLIES 2

I had quota for "all regions" but not for that specific region... that was the problem

Could you provide the region and UID of the job so that we can take a look?  You can get job UID from the "gcloud batch jobs describe <job-name>".  Once you do that, you can also peak into the 'status' field to see if there is anything suspicious.