From 3f26b4e8c600c15e4133bd9a69f48a54522c2b7e Mon Sep 17 00:00:00 2001 From: Hatem Nawar Date: Fri, 22 Nov 2024 12:37:21 +0000 Subject: [PATCH 1/2] Add googlebatch config docs and update default_private_ip to false Signed-off-by: Hatem Nawar --- conf/googlebatch.config | 2 +- docs/googlebatch.md | 49 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 docs/googlebatch.md diff --git a/conf/googlebatch.config b/conf/googlebatch.config index f99cb3a1a..5e174c31f 100644 --- a/conf/googlebatch.config +++ b/conf/googlebatch.config @@ -15,7 +15,7 @@ params { //networking - use_private_ip = true + use_private_ip = false // Custom VPC should be in this format 'global/networks/[custom_VPC]' custom_vpc = null //Custom subnet should be in this format 'regions/[GCP_Region]/subnetworks/[custom_subnet]' diff --git a/docs/googlebatch.md b/docs/googlebatch.md new file mode 100644 index 000000000..84724c62b --- /dev/null +++ b/docs/googlebatch.md @@ -0,0 +1,49 @@ +# nf-core/configs: googlebatch Configuration + +To be used with the `googlebatch` profile by specifying the `-profile googlebatch` when running nf-core pipelines. +project id and workdir bucket need to be supplied with `params.project_id`, `params.workdir_bucket `. + +## Required Parameters + +### `--project_id` + +Project id of the project where compute resources will be created + +### `--workdir_bucket` + +Cloud Storage Bucket to be used for the workdir + +## Optional Parameters + +### `--location` + +The region where compute resources will be provisioned. If not specified, it will default to `us-central1`. + +### `--use_spot` + +Defines which provisioning model to be used. When set to false, standard VM instances will be used. Defaults to `true`. + +### `--boot_disk` + +Defines the size of boot disk on compute instances. Defaults to `100GB`. + + +### `--workers_service_account` + +Defines which service account will be used by Compute instances running the pipeline. If not specified, the default compute service account of the project will be used. + +### `--use_private_ip` + +Defines whether real IP addresses will be assigned to compute instance runningn the pipeline. Defaults to `false`. If set to `true` a Cloud NAT needs to be provisioned on the same VPC to enable workers to access the Internet to download any necessary artifacts such as container images or communicate with Tower if it is configured. It is recommeneded to use private IP addresses. + +### `--custom_vpc` + +If you don't want to use the default VPC network or if it is not available, you need to specify both the `custom_vpc` and the `custom_subnet`. Custom VPC should be in this format `global/networks/[custom_VPC]`. + +### `--custom_subnet` + +When `custom_vpc` is specified, you must also specify the `custom_subnet`. Custom subnet should be in this format `regions/[GCP_Region]/subnetworks/[custom_subnet]`. + +## Gogole Batch Setup + +Please refer to the [Nextflow](https://www.nextflow.io/docs/latest/google.html) documentation which describe how to setup the Google Cloud environment. From c28ce52684d3ae58070819c229a5691efdd1f0d9 Mon Sep 17 00:00:00 2001 From: nf-core-bot Date: Mon, 25 Nov 2024 07:02:05 +0000 Subject: [PATCH 2/2] [automated] Fix code linting --- docs/googlebatch.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/googlebatch.md b/docs/googlebatch.md index 84724c62b..703be32db 100644 --- a/docs/googlebatch.md +++ b/docs/googlebatch.md @@ -27,7 +27,6 @@ Defines which provisioning model to be used. When set to false, standard VM inst Defines the size of boot disk on compute instances. Defaults to `100GB`. - ### `--workers_service_account` Defines which service account will be used by Compute instances running the pipeline. If not specified, the default compute service account of the project will be used.