aryarm / aryarm/as_analysis

set disk_mb values appropriately

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
bug gcp
Dominant language
R
Stars
10
Forks
9
PR merge metrics
No merged PRs in 30d

Description

The majority of the errors I've been seeing while running the pipeline on Google Cloud have to do with insufficient disk space or memory.
I've tried to set some reasonable default values for these within the Snakefile and in `run-gcp` based on a sample that I ran locally on our cluster, but I'm sure those won't be sufficient for all of the samples that we want to run in the future.
After discussing with the Snakemake team, they recommended the following:
> Regarding your disk_mb problem, you need to add --default-resources to the snakemake invocation. This way, disk_mb will be automatically set to a reasonable default (max(2*input.size_mb, 1000)). The same for mem_mb.

So we should probably try that to see if it will help.
The Snakemake documentation talks about it in [their execution section](https://snakemake.readthedocs.io/en/stable/executing/cli.html?highlight=disk_mb#EXECUTION), but some digging might need to be done to figure out how to use this properly for ourselves.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the resource settings in the Snakefile and the `run-gcp` invocation, then consult Snakemake's execution documentation on `--default-resources`. Check how the recommended disk and memory defaults apply to this pipeline and its Google Cloud runs. Done means the invocation uses suitable defaults and avoids the reported insufficient disk-space or memory errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.