{"id":13671603,"url":"https://github.com/labring/sealfs","last_synced_at":"2025-06-11T14:39:13.927Z","repository":{"id":60333905,"uuid":"536031603","full_name":"labring/sealfs","owner":"labring","description":"The storage system of sealos, aims to be a high-performance, high-reliability, and auto-scaling distributed file system","archived":false,"fork":false,"pushed_at":"2023-08-29T10:02:04.000Z","size":620,"stargazers_count":151,"open_issues_count":10,"forks_count":22,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-27T18:38:23.227Z","etag":null,"topics":["distributed-systems","filesystem","rust","scalability","storage"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labring.png","metadata":{"files":{"readme":"README-ZH.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-13T08:32:30.000Z","updated_at":"2025-04-24T03:04:42.000Z","dependencies_parsed_at":"2024-11-11T09:31:53.773Z","dependency_job_id":"de0fa844-8a11-4a98-bc42-91f725476cf1","html_url":"https://github.com/labring/sealfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labring%2Fsealfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labring%2Fsealfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labring%2Fsealfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labring%2Fsealfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labring","download_url":"https://codeload.github.com/labring/sealfs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labring%2Fsealfs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280920,"owners_count":22833476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-systems","filesystem","rust","scalability","storage"],"created_at":"2024-08-02T09:01:14.276Z","updated_at":"2025-06-11T14:39:13.884Z","avatar_url":"https://github.com/labring.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# SEALFS\n\n[sealos](https://github.com/labring/sealos)的存储底座，我们希望构建一个适用于云原生的高性能，高可靠，弹性伸缩的分布式文件存储\n\n## 系统架构\nsealfs的架构为无中心架构，且无独立的元数据节点，我们希望尽最大可能提升读写性能和解决存储海量小文件问题\n\n- server负责文件以及元数据存储，元数据无疑是分布式文件系统的热点文件，所以我们采用分挂盘的方式对数据和元数据进行存储，用户可以选择更好的硬件对元数据进行存储。\n- client实现用户态的文件系统，对文件请求进行拦截并通过哈希算法进行存储寻址。\n- manager负责协调集群。\n\n设计图如下：\n![](docs/images/architecture.jpg)\n\n### 全链路用户态\n我们希望结合特定硬件从客户端文件请求劫持到网络到存储打造一个全链路用户态的分布式文件存储系统，从而获得极致的性能体验。\n\n更多设计可以参考：\n### 设计文档\n[设计文档](https://github.com/labring/sealfs/blob/main/docs/README-ZH.MD)\n\n## 实现计划\n目前我们致力于全链路性能提升，对于其他方面的建设如高可靠性以及高可用性的优先级会低一些\n- 第一版功能实现：\n  - 客户端:\n    - [ ] fuse文件系统接口\n    - [ ] 系统调用劫持（用户态文件系统）\n    - [ ] 选址算法\n    - [ ] 批处理\n\n  - 服务端:\n    - [ ] 绕过本地文件系统\n    - [ ] 磁盘管理\n    - [ ] 目录管理\n    - [ ] 元数据持久化内存存储\n    - [ ] 文件索引\n    - [ ] 文件锁\n    - [ ] 持久化数据结构\n    \n  - 协调节点:\n    - [ ] 心跳管理\n    \n  - 网络:\n    - [ ] RDMA\n    - [ ] socket网络通信\n\n  - 测试\n    - [ ] IO500\n    - [ ] 功能测试\n\n## 编译\n\nrust版本 1.68\n\n```bash\ncargo build\n```\n\n## 快速使用\n\n### 启动管理节点\n\n```bash\n# edit manager.yaml\nvi examples/manager.yaml\n\n# start manager with manager.yaml\nSEALFS_CONFIG_PATH=./examples ./target/debug/manager \u0026\n```\n\n### 启动一个服务器\n\n```bash\n./target/debug/server --manager-address \u003cmanager_ip\u003e:\u003cmanager_port\u003e --server-address \u003cserver_ip\u003e:\u003cserver_port\u003e --database-path \u003clocal_database_dir\u003e --storage-path \u003clocal_storage_dir\u003e --log-level warn \u0026\n```\n\n### 启动一个客户端\n\n```bash\n./target/debug/client --manager-address \u003cmanager_ip\u003e:\u003cmanager_port\u003e --log-level warn daemon\n```\n\n### 创建并挂载磁盘\n\n```bash\n./target/debug/client --manager-address \u003cmanager_ip\u003e:\u003cmanager_port\u003e --log-level warn create test1 100000\n./target/debug/client --log-level warn mount ~/fs test1\n```\n\n## 开源协议\n[Apache License 2.0](https://github.com/labring/sealfs/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabring%2Fsealfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabring%2Fsealfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabring%2Fsealfs/lists"}