服务器之间共享存储

发布于 2024-08-19 19:50:20 字数 561 浏览 7 评论 0原文

我有一个基于 PHP 的 Web 应用程序,目前仅使用一个 Web 服务器,但很快就会扩展到另一个。在大多数方面,这非常简单,但应用程序还在文件系统上存储了大量文件。似乎有很多方法可以在两个服务器之间共享文件,从非常简单到相当复杂。

这些是我所知道的选项

  • 简单网络存储
    • NFS
    • SMB/CIFS
  • 集群文件系统
    • 光泽
    • GFS/GFS2
    • GlusterFS
    • Hadoop DFS
    • MogileFS

我想要的是通过一个网络服务器上传的文件在通过另一个网络服务器访问时立即可用。数据非常重要并且绝对不能丢失,因此无论实现什么都需要a)永远不会丢失数据并且b)具有非常高的可用性(与本地文件系统一样好或更好)。

看起来集群文件系统还将提供比本地存储(对于大文件)更快的数据访问,但这目前并不重要。

你会推荐什么?对于上述选项,您有什么要添加的建议或需要特别注意的地方吗?关于如何管理集群文件系统上的数据备份有什么建议吗?

I have a PHP based web application which is currently only using one webserver but will shortly be scaling up to another. In most regards this is pretty straightforward, but the application also stores a lot of files on the filesystem. It seems that there are many approaches to sharing the files between the two servers, from the very simple to the reasonably complex.

These are the options that I'm aware of

  • Simple network storage
    • NFS
    • SMB/CIFS
  • Clustered filesystems
    • Lustre
    • GFS/GFS2
    • GlusterFS
    • Hadoop DFS
    • MogileFS

What I want is for a file uploaded via one webserver be immediately available if accessed through the other. The data is extremely important and absolutely cannot be lost, so whatever is implemented needs to a) never lose data and b) have very high availability (as good as, or better, than a local filesystem).

It seems like the clustered filesystems will also provide faster data access than local storage (for large files) but that isn't of vita importance at the moment.

What would you recommend? Do you have any suggestions to add or anything specifically to look out for with the above options? Any suggestions on how to manage backup of data on the clustered filesystems?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

握住我的手 2024-08-26 19:50:20

您可以查看在服务器之间实时复制文件的镜像文件系统。
它的安装和设置非常简单。一个 mount 命令即可完成,您就可以拥有 HA,
不到 10 分钟即可实现负载平衡和备份解决方案。

http://www.TwinPeakSoft.com/

Fish.Ada

You can look at the Mirror File System that replicate files between servers in real time.
It's very easy to install and set up. One mount command does it and you can have a HA,
Load Balancing and Backup solution in less than 10 minutes.

http://www.TwinPeakSoft.com/

Fish.Ada

终难遇 2024-08-26 19:50:20

看起来集群文件系统是最好的选择。可以像任何其他文件系统一样进行备份,尽管大多数文件系统都内置冗余,但它们已经比标准文件系统更可靠。

It looks like the clustered filesystems are the best bet. Backup can be done as for any other filesystem, although with most of them having built in redundancy, they are already more reliable than a standard filesystem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文