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

Batch - how to choose machine type?

Hi,

I'm a little confused about how select InstancePolicy.machine_type when creating jobs through Batch.

Let's say that I have a task which needs 2000 milliCpu and 2000 MiB and I want to run 200 of them. What should I choose for a machine type? If I want complete parallelism (e.g. 200) does that change anything?

Some particular cases I don't understand from the API documentation:

  • If I choose n1-standard-1 with only one vCPU will it fail to run any tasks?
  • If I choose n1-standard-4 will it run 2 tasks per VM? Will it be wasting 15 - 2*2 = 11 GB of ram?
  • Can I leave machine_type unspecified and have it automatically determined for efficiency?

Thank you!

0 4 939