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.
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.
Sealfs consists of the following three components:
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 component implements the file-system in user mode. It intercepts file requests, stores, and addresses them through hash algorithms.
Manager component is responsible for coordinating the cluster.
The System Architecture can be shown as follow:
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:
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
-
rust version 1.68
make build
# edit manager.yaml
vi examples/manager.yaml
# start manager with manager.yaml
SEALFS_CONFIG_PATH=./examples ./target/debug/manager &
./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 &
./target/debug/client --log-level warn daemon
./target/debug/client --log-level warn create test1 100000
./target/debug/client --log-level warn mount ~/fs test1