cevincheung
V2EX  ›  互联网

如果用 NFS 做代码发布,所有 web 服务器都 mount 代码目录,靠谱不?

  •  
  •   cevincheung · Jan 15, 2016 · 2091 views
    This topic created in 3797 days ago, the information mentioned may be changed or developed.

    现在是 git push 后 hook 代码发布服务器,然后 pull 下来 rsync 自动同步到 N 台机器……

    2 replies    2016-01-17 15:33:18 +08:00
    xinyewdz
        1
    xinyewdz  
       Jan 15, 2016
    我现在使用 nfs mount 一个目录,然后所有服务器从这个目录拉取文件部署。用了半年多,没遇到什么问题。
    cevincheung
        2
    cevincheung  
    OP
       Jan 17, 2016
    @xinyewdz 昨晚试了试,写入有点慢。别的貌似都还好。另外,如果 nfs-server 挂了,其他已经 mount 的服务端执行 ls 的时候无响应。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
    ♥ Do have faith in what you're doing.