当前位置:网站首页>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 .
边栏推荐
- 新手必须知道的 Kubernetes 架构
- C. Where‘s the Bishop?
- Reading notes on how to connect the network - LAN on the server side (4)
- A. Print a Pedestal (Codeforces logo?)
- Data mining review
- I want to register my stock account online. How do I do it? In addition, is it safe to open a mobile account?
- The inadvertently discovered [tidb cache table] can solve the read / write hotspot problem
- Cout ambiguous problem
- Taro applet enables wxml code compression
- After inventing anti-virus software, he chose to be a top-notch gangster
猜你喜欢

ASP dynamically creates table table

Motianlun "high availability architecture" dry goods document sharing (including 124 Oracle, MySQL and PG materials)

数论-整除分块

Small library project summary

Matplotlib histogram

从第三次技术革命看企业应用三大开发趋势

便携式4K音视频会议终端一体机带8倍数字变焦

The logic behind the three whys encountered in technical communication

2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry

Huawei's software testing director with 7 years' experience, several suggestions for all students who want to switch to software testing
随机推荐
Simple analysis of wieshark packet capturing MySQL protocol
ASP利用Panel实现简易注册页面
Divide the bonus pool of 10million + million yuan, and empower developers in the 2022 shengteng AI innovation competition
Résumé du projet de petite bibliothèque
Add the applet "lazycodeloading": "requiredcomponents" in taro,
每日刷题记录 (八)
The inadvertently discovered [tidb cache table] can solve the read / write hotspot problem
Huawei cloud AOM version 2.0 release
How to use the DVD entry level in taro3.*
Go standard library context package: data, cancellation signal, deadline and other related operations between a single request and multiple goroutines and the request domain
ASP.NET 跨页面提交(Button控件页面重定向)
The child component of a single data flow modifies the value of the parent component
Matplotlib histogram
Alibaba keyword search commodity API interface (item_search- commodity search interface by keyword), Alibaba Search API interface
Wechat public account development, send message reply text
If the evaluation conclusion of waiting insurance is poor, does it mean that waiting insurance has been done in vain?
Graduation summary of construction practice camp
Visual analysis and display effect of summer data
Autodesk Revit 2023 software installation package download and installation tutorial
Reflections on remote sensing image interpretation