sealfs
sealfs copied to clipboard
The storage system of sealos, aims to be a high-performance, high-reliability, and auto-scaling distributed file system
SEALFS
The storage system of sealos, aiming to be a high-performance, highly reliable and auto-scalable distributed file system which fits the cloud native environment.
System Architecture
The architecture of sealfs is decentralized, and there is no single metadata node. sealfs hopes to improve the read and write performance as much as possible and solve the problems of storing large amounts of small files.
Main Components
Sealfs consists of the following three components:
Server
Server component is responsible for storing files and metadata. sealfs separates data and metadata into different disks, since metadata is undoubtedly the hot file on distributed file-system. This way, users can choose better hardware to store metadata.
Client
Client component implements the file-system in user mode. It intercepts file requests, stores, and addresses them through hash algorithms.
Manager
Manager component is responsible for coordinating the cluster.
The System Architecture can be shown as follow:
User Mode All The Way
With specific hardware, sealos hopes to support user-mode completely, from file request hijacking on the client side, to the network, and to the storage, for maximum performance improvement.
More designs can be referred to:
Design Document
RoadMap
Currently, we are committed to improving the performance thoroughly. For other design aspects, such as high reliability and high availability, the priority would be lower.
- first version Function:
-
Client:
- [ ] fuse file system interface
- [ ] System call hijacking(file system of user mode)
- [ ] location algorithm
- [ ] batch process
-
Sever:
- [ ] bypass file system
- [ ] file Storage
- [ ] disk manager
- [ ] catalogue manager
- [ ] Metadata persistent memory storage
- [ ] file index
- [ ] file lock
- [ ] Persistent data structure
-
Manger:
- [ ] heart manager
-
Network:
- [ ] RDMA
- [ ] socket network
-
Test
- [ ] IO500
- [ ] function test
-
Compile
rust version 1.68
make build
Quick Start
Start Manager
# edit manager.yaml
vi examples/manager.yaml
# start manager with manager.yaml
SEALFS_CONFIG_PATH=./examples ./target/debug/manager &
Start Servers on a Node
./target/debug/server --manager-address <manager_ip>:<manager_port> --server-address <server_ip>:<server_port> --database-path <local_database_dir> --storage-path <local_storage_dir> --log-level warn &
Start Client on a Node
./target/debug/client --log-level warn daemon
Create & Mount Disk
./target/debug/client --log-level warn create test1 100000
./target/debug/client --log-level warn mount ~/fs test1