wustl-oncology / cloud-workflows

Infrastructure and tooling required to get genomic workflows running in the cloud
1 stars 6 forks source link

Customizing memory and cpu specifications for VMs #33

Open Layth17 opened 1 year ago

Layth17 commented 1 year ago

because boot-disk-size is a param taken in through the @ and at that point MEM and CPU weren't specified so MACHINE_TYPE was added by default to the list of params.

In other words, set the flags that start.sh ask for first then add flags accepted by GCP afterwards.

I do not think this is new/unique to this case. This is probably just a new finding for me.

Layth17 commented 1 year ago

rework* of parameters

Layth17 commented 1 year ago

if MACHINE_TYPE is not specified by user then it is defaulted to e2-standard-2

if either MEM or CPU are empty, then --machine-type=$MACHINE_TYPE is added to the list of params.