I’m trying to reduce the startup time of my Google Batch tasks. My task starts out by running the gcsfuse cli to mount a GCS bucket. When I tried using image streaming (enableImageStreaming=true) I get an error:
Error while mounting gcsfuse: mountWithArgs: mountWithStorageHandle: mount: mount: running /usr/bin/fusermount: exit status 1
This only happens when using image streaming. What could be the cause? Can you suggest a solution or a workaround?
I’ve reproduced the same issue when using job.task_groups.task_spec.volumes to let Google Batch set up the mount. (job id mlapp-inference-v1-8ac905ee9dd5b564-490333fcfdda11efb06e4e82ac9)
This is due to a limitation in the current Batch image streaming design that it cannot operate in “–priviledge” mode. We’ll treat it as a feature request to address in the future. Please avoid using gcfuse and image streaming together for now.