Skip to content
Discussion options

You must be logged in to vote

rename() on a Cloud Storage FUSE mount (Cloud Run volume) won’t reliably rename a directory. It often explodes with “Too many open files” because FUSE has to touch a ton of objects to simulate a folder rename. Cloud Storage isn’t a POSIX FS; “folders” are just prefixes. ([Google Cloud]1)

Here are solid ways to fix it (pick one):

1) If the directory is small: let FUSE do it (set a limit)

Cloud Run now lets you pass FUSE mount options. Set a safe cap so FUSE will only attempt directory renames when the folder has ≤ N descendants:

gcloud beta run services update YOUR_SERVICE \
  --execution-environment gen2 \
  --add-volume name=GCS,type=cloud-storage,bucket=YOUR_BUCKET,mount-options="rename…

Replies: 3 comments 1 reply

This comment was marked as off-topic.

Comment options

You must be logged in to vote
1 reply
@firloming
Comment options

Answer selected by firloming
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Deployment Topics about deploying workflows, publishing artifacts, and deployment targets in GitHub Actions. Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants