| 主機(jī)參考:VPS測(cè)評(píng)參考推薦/專(zhuān)注分享VPS服務(wù)器優(yōu)惠信息!若您是商家可以在本站進(jìn)行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務(wù),查看詳情! |
| 我們發(fā)布的部分優(yōu)惠活動(dòng)文章可能存在時(shí)效性,購(gòu)買(mǎi)時(shí)建議在本站搜索商家名稱(chēng)可查看相關(guān)文章充分了解該商家!若非中文頁(yè)面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |
MogileFS是一套高效的文件自動(dòng)備份組件,由Six Apart開(kāi)發(fā),廣泛應(yīng)用在包括LiveJournal等web2.0站點(diǎn)上。?MogileFS的特性:?工作在應(yīng)用層,無(wú)單點(diǎn),自動(dòng)文件復(fù)制(復(fù)制的最小單位是class,而不是文件),傳輸中立且使用nfs或者h(yuǎn)ttp協(xié)議進(jìn)行傳輸。?MogileFS的結(jié)構(gòu)組成:?tracker:是mogilefs的核心,是一個(gè)調(diào)度器,通過(guò)數(shù)據(jù)庫(kù)來(lái)保存元信息,包括daemon,class,host等信息,主要職責(zé):監(jiān)控后端mogstore節(jié)點(diǎn),并指示store節(jié)點(diǎn)完成數(shù)據(jù)的添加,刪除,查詢(xún),及節(jié)點(diǎn)之間的復(fù)制.?mogstore:實(shí)際數(shù)據(jù)的存儲(chǔ)位置,通常偽一個(gè)http服務(wù)器.?database:用來(lái)保存節(jié)點(diǎn)的全局信息.
1.安裝MogileFS?a.下載MogileFS?MogileFS-Server:https://github.com/mogilefs/MogileFS-Server?MogileFS-Utils:https://github.com/mogilefs/MogileFS-Utils?perl-MogileFS-Client:https://github.com/mogilefs/perl-MogileFS-Client?b.安裝:?將文件解壓并進(jìn)入文件內(nèi)
????[root@clone3?nginx-1.11.12]#?make?Makefile.PL
????[root@clone3?nginx-1.11.12]#?make??make?install
????[root@clone3?nginx-1.11.12]#?yum?install?perl-IO-AIO123123
2.配置文件講解
????參數(shù)解答:??總用量?8
3.啟動(dòng)并測(cè)試
1.創(chuàng)建/var/run/mogilefsd目錄并修改屬組屬主
????[root@Master?mogilefs]#?mkdir?-p??/var/run/mogilefsd
? ? ? ?? ? [root@Master?mogilefs]#?chown?-R?mogilefs.mogilefs?/var/run/mogilefsd/
2.創(chuàng)建/mog/mogdata目錄并修改屬組屬主
? ? [root@Master?mogilefs]#?mkdir?-p?/mog/mogdata
? ? [root@Master?mogilefs]#?chown?-R?mogilefs.mogilefs?/mog/mogdata/
3.啟動(dòng)mogilefsd進(jìn)程和mogstored進(jìn)程
? ? [root@Master?mogilefs]#?service?mogilefsd?start
? ? ? ? Starting?mogilefsd?????????????????????????????????????????
? ? [root@Master?mogilefs]#?service?mogstored?start
? ? ? ? Starting?mogstored?????????????????????????????????????????
**此處的啟動(dòng)腳本是使用rpm包安裝,并且自帶的,一般使用make安裝的沒(méi)有服務(wù)腳本**
4.使用管理工具配置mogstord節(jié)點(diǎn)主機(jī)
??????????????????????**文件實(shí)際訪問(wèn)位置**
5.使用瀏覽器訪問(wèn)?這樣一個(gè)mogilefs分布式存儲(chǔ)就設(shè)置好了,只是mogilefsd進(jìn)程和mogstored進(jìn)程在統(tǒng)一主機(jī)上。?6.負(fù)載均衡設(shè)計(jì)結(jié)構(gòu)?7.使用nginx實(shí),現(xiàn)反向代理?使用nginx反向代理mogilefs時(shí),要用到第三方模塊在能使實(shí)現(xiàn)代理,nginx身不支持mogilefs的代理,下載模塊快為nginx_mogilefs_module,下載地址:http://www.grid.net.ru/nginx/download/nginx_mogilefs_module-1.0.4.tar.gz
????????**詳細(xì)參數(shù)請(qǐng)參考官方文檔:http://www.grid.net.ru/nginx/mogilefs.en.html**
8.配置兩臺(tái)mogilefs主機(jī)?在配置兩臺(tái)主機(jī)是,mogilefsd進(jìn)程會(huì)在數(shù)據(jù)庫(kù)中讀取mogstord節(jié)點(diǎn)的信息,在配置時(shí)按照上述闡述僅可以配置,建議在一個(gè)mogilefsd節(jié)點(diǎn)上配置,另一個(gè)節(jié)點(diǎn)可以在數(shù)據(jù)庫(kù)中讀到。?9.測(cè)試結(jié)果?
?
Mogilefs is a set of efficient automatic file backup component developed by six apart, which is widely used in Web2.0 sites including livejournal. Features of mogilefs: working in the application layer, no single point, automatic file replication (the minimum unit of replication is class, not file), transmission neutral and using NFS or HTTP protocol for transmission. The structure of mogilefs is composed of: Tracker: it is the core of mogilefs, and it is a scheduler. It stores meta information through database, including the information of daemon, class, host, etc. main responsibilities: monitor the backend mogstore node, and instruct the store node to complete data addition, deletion, query, and replication between nodes. Mogstore: the storage location of actual data, usually pseudo one hour TTP server. Database: used to save the global information of nodes
1. Install mogilefs A. download mogilefs mogilefs server: https://github.com/mogilefs/mogilefs-server mogilefs-utils: https://github.com/mogilefs/mogilefs-utils perl-mogilefs-client: https://github.com/mogilefs/perl-mogilefs-client B. install: extract and enter the file
????[root@clone3?nginx-1.11.12]#?make?Makefile.PL
????[root@clone3?nginx-1.11.12]#?make??make?install
????[root@clone3?nginx-1.11.12]#?yum?install?perl-IO-AIO123123
2. Profile explanation
Parameter answer: total consumption 8
3. Start and test
1. Create / var / run / mogilefsd directory and modify the genus, group and owner
????[root@Master?mogilefs]#?mkdir?-p??/var/run/mogilefsd
? ? ? ?? ? [root@Master?mogilefs]#?chown?-R?mogilefs.mogilefs?/var/run/mogilefsd/
2. Create / MOG / mogdata directory and modify the genus, group, and owner
? ? [root@Master?mogilefs]#?mkdir?-p?/mog/mogdata
? ? [root@Master?mogilefs]#?chown?-R?mogilefs.mogilefs?/mog/mogdata/
3. Start the mogilefsd process and the mogstored process
? ? [root@Master?mogilefs]#?service?mogilefsd?start
? ? ? ? Starting?mogilefsd?????????????????????????????????????????
? ? [root@Master?mogilefs]#?service?mogstored?start
? ? ? ? Starting?mogstored?????????????????????????????????????????
**The startup script here is installed by using RPM package, and comes with it. Generally, there is no service script installed by using make**
4. Use the management tool to configure the mogstore node host
* file actual access location**
5. Use a browser to access such a mogilefs distributed storage. Only the mogilefsd process and the mogstored process are on the unified host. 6. Load balancing design structure 7. Using nginx implementation, now the reverse agent. When using nginx reverse agent mogilefs, the third-party module should be used to realize the agent. Nginx does not support the agent of mogilefs. The download module is fast as nginx 65104; mogilefs ﹐ module, and the download address is http://www.grid.net.ru/nginx/download/nginx ﹐ mogilefs ﹐ module-1.0.4.tar.gz
* for detailed parameters, please refer to the official document: http://www.grid.net.ru/nginx/mogilefs.en.html**
8. Configure two mogilefs hosts. When configuring two hosts, the mogilefsd process will read the information of the mogstord node in the database. During the configuration, it can only be configured according to the above description. It is recommended to configure on one mogilefsd node, and the other node can be read in the database. 9. Test results
?
--------------------------------------------------------------
主機(jī)參考,收集國(guó)內(nèi)外VPS,VPS測(cè)評(píng),主機(jī)測(cè)評(píng),云服務(wù)器,虛擬主機(jī),獨(dú)立服務(wù)器,國(guó)內(nèi)外服務(wù)器,高性?xún)r(jià)比建站主機(jī)相關(guān)優(yōu)惠信息@www.k2270.com
詳細(xì)介紹和測(cè)評(píng)國(guó)外VPS主機(jī),云服務(wù)器,國(guó)外服務(wù)器,國(guó)外主機(jī)的相關(guān)優(yōu)惠信息,商家背景,網(wǎng)絡(luò)帶寬等等,也是目前國(guó)內(nèi)最好的主機(jī)云服務(wù)器VPS參考測(cè)評(píng)資訊優(yōu)惠信息分享平臺(tái)
這幾篇文章你可能也喜歡:
- 1G的云服務(wù)器可以做什么?好不好
- WNT蟲(chóng)洞傳輸實(shí)現(xiàn)內(nèi)網(wǎng)安全、高速、穩(wěn)定傳輸
- 云服務(wù)器ecs怎么選購(gòu),有哪些技巧
- WNT高速直連公有云、私有云,解決丟包,降低延遲
- Exchange 2013安裝部署及補(bǔ)充
本文由主機(jī)參考刊發(fā),轉(zhuǎn)載請(qǐng)注明:Linux之使用MogileFS分布式文件系統(tǒng)并使用nginx實(shí)現(xiàn)反向代理 http://www.k2270.com/12574.html
主機(jī)參考

















評(píng)論前必須登錄!
注冊(cè)