【问题标题】:How to configure gcsfuse to mount a bucket in a google cloud vm and access the resources in the best way?如何配置 gcsfuse 以在 google cloud vm 中挂载存储桶并以最佳方式访问资源?
【发布时间】:2020-09-10 17:49:09
【问题描述】:

当 gcsfuse 用于在 google cloud vm 中挂载存储桶时,我们访问该资源,例如通过为 vm 配置的 url,example.com/image.jpg 的图像,是在vm实例和gcsfuse挂载的bucket?,图像的响应时间受到影响?,从bucket中调用它会更好吗,例如https://storage.googleapis.com/bucket/imagen.jpg?,欢迎任何帮助。

【问题讨论】:

    标签: google-cloud-platform google-cloud-storage gcsfuse


    【解决方案1】:

    请记住,gcsfuse 只是一个 API 包装器,可将 os 读/写调用转换为 API gRPC 调用。

    因此,围绕 GCS API 调用的所有内容都已应用:

    我不确定像https://storage.googleapis.com/bucket/imagen.jpg 这样直接调用文件效率更高。发起一个新的 HTTP 调用(使用 SSL 握手等)。我从未测试过,但我觉得使用 gcsfuse 可以更高效。

    【讨论】:

      猜你喜欢
      • 2022-01-21
      • 2018-05-08
      • 2018-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-23
      • 2016-04-17
      • 2021-11-24
      相关资源
      最近更新 更多