dst8922 2013-11-13 15:22
浏览 51
已采纳

亚马逊s3安装与保险丝和s3fs

I have an Nginx Server with php-fpm installed on Centos 6.4

1. Current status:

I use the NFS server to hold versions and files, Nginx mounts the NFS and serves files from it. this scenario is working and handles large volumes of traffic

2. Desired scenario

Replace the NFS with S3 and mount it using fuse & s3fs. In that scenario the server fails when forced to handle high traffic.

Is fuse & s3fs much slower or am i missing something? Thx

  • 写回答

2条回答 默认 最新

  • douliwang6896 2013-11-13 15:35
    关注

    The problem is in thinking that S3 behaves like an NFS mount. It does not. NFS and other disk volumes work on blocks, s3 works on entire objects. Generally when accessing files from s3fs, the entire file is copied to tmp and it has much higher latency than disk access.

    A couple of solutions:

    If you prefer NFS, you can set up an NFS share from a separate instance and mount it on the instances that need it.

    Otherwise, you can deploy your code directly to the instance itself, (which is something you can automate) and run your code from there. Static assets could be served directly from s3 via cloudfront and/or with cloudfront using a custom origin.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料