作為中小型公司的運維人員或者說架構人員,是否曾遇到過這種情況,網站的每一次更新改造都面臨着架構的再次選型。其中較典型的就是圖檔或者小檔案的架構。筆者曾遇到過,當時考慮了多種備選方案。接下來我要說的就是當時的一種。

MooseFS is a fault tolerant, network distributed file system. It spreads data over several physical servers which are visible to the user as one resource. For standard file operations MooseFS acts as other Unix-alike file systems:
MooseFS是容錯,網絡分布式檔案系統。它傳播的資料在多個實體伺服器,這是對使用者可見的一個資源。對于标準的檔案操作MooseFS充當其他類Unix相似的檔案系統:
A hierarchical structure (directory tree)
層次結構(目錄樹)
Stores POSIX file attributes (permissions, last access and modification times)
存儲POSIX檔案屬性(權限,最後通路和修改時間)
Supports special files (block and character devices, pipes and sockets)
支援特殊檔案(塊裝置和字元裝置,管道和套接字)
Symbolic links (file names pointing to target files, not necessarily on MooseFS) and hard links (different names of files which refer to the same data on MooseFS)
符号連結(檔案名指向的目标檔案,不一定MooseFS )和硬連結(這指的是相同的資料上MooseFS檔案的名稱不同)
Access to the file system can be limited based on IP address and/or password
通路檔案系統可以根據IP位址和/或密碼被限制
Distinctive features of MooseFS are:
MooseFS的鮮明特點是:
High reliability (several copies of the data can be stored across separate computers)
高可靠性(資料的多個副本可以存儲在多個單獨的計算機上)
Capacity is dynamically expandable by attaching new computers/disks
容量是通過附加新的計算機/磁盤動态擴充
Deleted files are retained for a configurable period of time (a file system level "trash bin")
删除的檔案保留的可配置時間段(一個檔案系統級别“垃圾桶” )
Coherent snapshots of files, even while the file is being written/accessed
檔案的相幹快照,甚至在檔案被寫入/通路
看到這裡,很多博友可能會問,怎麼隻有文字說明和截圖,沒有安裝過程啊!安裝過程出了官網上的,google和baidu的已經夠多的了,我就不用再重複了,關鍵的文字說明,我是想告訴各位博友,當你要決定用的時候,你要明白它可以滿足你的那些需求。截圖可以讓我們很直覺的對整個叢集的資訊實時監控,便于運維。
在當初的時候,我們沒有選擇這套方案主要是因為成本,MooseFS 部署過程相比其它,還算簡單。配置友善,監控也很直覺。
僅以簡短的文字說明和幾幅簡圖給中小型公司的運維兄弟,在做圖檔檔案存儲架構選型方面,提供一個參考,在穩定公司業務的基礎上,提高自己的技術水準!