Hi there,
We are trying to mount a GCS bucket, but would like to add gcsfuse parameters:
# Jobs can be divided into tasks. In this case, we have only one task.
task = batch_v1.TaskSpec(
runnables=[runnable],
compute_resource=resources,
max_retry_count=10,
max_run_duration="36_000s",
volumes=[
batch_v1.Volume(
gcs= batch_v1.GCS(
remote_path="XXX/images/",
),
mount_path="/mnt/disks/share",
mount_options=["max-conns-per-host=200", "max-idle-conns-per-host=200"],
)
],
)
It works when we remove that argument, but not with it:
mount_options=["max-conns-per-host=200", "max-idle-conns-per-host=200"]
And it’s a bit tricky to debug because when an instance fails when mounting a volume, Batch doesn’t show any log.
I guess the question is: am I passing the options correctly? Is it the correct syntax? Examples in docs don’t show any example passing options with GCS.
Here is where I found the options names: github