当前位置:网站首页>Summary of basic concepts of moosefs
Summary of basic concepts of moosefs
2022-06-29 22:14:00 【Brother Xing plays with the clouds】
I recently learned about a Distributed file system ——MooseFS, Previous pair Distributed Little is known about , Distributed file system 、 Distributed Databases are near and far away , I think it's too complicated. It's still far away from me . With the help of all the teachers, I use 6 This machine has been put into practice moosefs,moosefs The deployment of is still very simple , And configuration NFS It's like , It's a machine with two more roles , It is with them , So that moosefs It is much better in scalability and stability than NFS, In terms of read-write performance , adopt dd A simple test conducted ,moosefs That is, the write speed is slightly better than NFS, No difference in reading . The following is about MFS Some summary of knowledge points .
MFS System consists of 4 Parts make up :master、metalogger、chunkserver、client.
Master —— mfs Brain , Record management information , such as : file size , Storage location , Number of copies, etc , and innodb China Space (ibdata) The information stored in is similar to , This information is recorded in metadata.mfs in , When the file is loaded into memory , The file is renamed to metadata.mfs.back, When chunkserver When there is an update on ,master New information will be written back to metadata.mfs.back in , Ensure the reliability of metadata .
Hardware recommendation : Large memory , Because in memory you need to metadata.mfs Loading in , The size of this file depends on you chunkserver The amount of data stored on , The size of memory will become a problem later , want ECC Can be used for error checking , When the amount of data in memory reaches a certain level , If there is no fault-tolerant mechanism , It's going to be terrible ; Redundant batteries , And disk configuration RAID1/RAID5/RAID10, All to ensure high reliability .
Metalogger —— mfs Backup of , like mysql Medium m-s structure ,metalogger Will be heavy on a regular basis master Admiral's metadata、changelog、session The type of file download is synchronized to the local directory , And suffixes ”_ml” Rename it .
Hardware recommendation : And master The machine configuration is consistent ,metalogger Itself is master A backup of , When master After downtime , You can directly metalogger Upgrade to master.
Chunkserver —— Where the data is stored , Document to chunk Size storage , Every time chunk The maximum is 64M, Less than 64M Of , The chunk The size of is the file size , exceed 64M The documents will be divided equally , Every one (chunk) The size of is less than 64M For principle ; There can be more than one document copy, That is, in addition to the original documents , The number of copies of the document stored , When goal by 1 when , It means that there is only one copy, This copy Will be randomly stored in one chunkserver On , When goal The number of is greater than 1 when , Every one copy Will be saved separately to each chunkserver On ,goal Don't exceed the size of chunkserver The number of , Otherwise, there will be more copy, There will be no chunkserver To deposit ,goal It doesn't really make sense to have more settings .Copy Number of copies , It is generally set to be greater than 1 Share , So if there is one chukserver When it's broken , At least one more copy, When this one was added again , The share that will be lost copy Make up , Always keep the original copy Count , And if the goal Set to 1copy, So when it comes to storage copy Of chunkserver Broken , And then back in ,copy The number will always be 0, It won't go back to the previous 1 individual copy.
Chunkserver The remaining storage space on is larger than 1GB(Reference Guide Have mentioned ), New data will be allowed to write , otherwise , You'll see No space left on device A hint of , In the actual , The test found that when the disk utilization reached 95% Left and right , You can no longer write , The available space was 1.9GB.
Hardware recommendations : Just ordinary machines , Just to save some data , As long as the disk is big enough .
Client —— The client is loaded through the kernel FUSE modular , Through again and master Communication , take chunkserver The shared partition is mounted locally , Then read and write . because FUSE Modules are additional modules , When the system restarts , You need to perform modprobe fuse, Load it into the kernel .
边栏推荐
- Small library project summary
- 5分钟快速上手 pytest 测试框架
- jfinal中如何使用过滤器监控Druid监听SQL执行?
- 2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry
- Reading notes on how to connect the network - LAN on the server side (4)
- DevCloud加持下的青软,让教育“智”上云端
- Which securities to choose for securities account opening? In addition, is it safe to open an account online now?
- Visual analysis and display effect of summer data
- 澳洲要求PVC 塑料片符合AS/NZS 1530.3 火焰蔓延指数为0吗?
- ASP.NET 跨页面提交(Button控件页面重定向)
猜你喜欢

Dynamics 365online lookup lookup field multiple selection

Three development trends of enterprise application viewed from the third technological revolution

Detailed description of gaussdb (DWS) complex and diverse resource load management methods

为什么要同时重写hashcode和equals方法之简单理解

MySQL backup and restore

Golang operation NSQ distributed message queue

Realization of graduation project topic selection system based on JSP

华为7年经验的软件测试总监,给所有想转行学软件测试的同学的几个建议

As a developer, you need to know about the codeless development platform IVX

这次跟大家聊聊技术,也聊聊人生
随机推荐
美国隧道法ASTM E84 表面阻燃测试
ASP. Net cross page submission (button control page redirection)
Datakit acts as an API server for local data acquisition
C. Where‘s the Bishop?
The soft youth under the blessing of devcloud makes education "smart" in the cloud
jfinal中如何使用过滤器监控Druid监听SQL执行?
软件测试方法和技术知识点有哪些?
Taro applet enables wxml code compression
小型圖書館項目總結
Guangzhou launched a campaign to promote the safety of bottled gas and popularized the knowledge of gas safety
State management uses session to restrict page access. Only login can verify sessionlogin Aspx can access session aspx
Huawei cloud AOM version 2.0 release
Numpy array creation
软件快速交付真的需要以安全为代价吗?
Bs-gx-018 student examination system based on SSM
A. Beat The Odds
Change detection and batch update
Writing a makefile for a golang project
Graduation summary of construction practice camp
Information available from radar echo