💡 摘要
RustFS 是一个高性能的分布式对象存储系统,使用 Rust 构建,针对大数据和 AI 工作负载进行了优化。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
RustFS is a high-performance, distributed object storage system built in Rust—one of the most loved programming languages worldwide. RustFS combines the simplicity of MinIO with the memory safety and raw performance of Rust. It offers full S3 compatibility, is completely open-source, and is optimized for data lakes, AI, and big data workloads.
Unlike other storage systems, RustFS is released under the permissible Apache 2.0 license, avoiding the restrictions of AGPL. With Rust as its foundation, RustFS delivers superior speed and secure distributed features for next-generation object storage.
Feature & Status
- High Performance: Built with Rust to ensure maximum speed and resource efficiency.
- Distributed Architecture: Scalable and fault-tolerant design suitable for large-scale deployments.
- S3 Compatibility: Seamless integration with existing S3-compatible applications and tools.
- Data Lake Support: Optimized for high-throughput big data and AI workloads.
- Open Source: Licensed under Apache 2.0, encouraging unrestricted community contributions and commercial usage.
- User-Friendly: Designed with simplicity in mind for easy deployment and management.
| Feature | Status | Feature | Status | | :---------------------- | :----------- | :----------------------- | :--------------- | | S3 Core Features | ✅ Available | Bitrot Protection | ✅ Available | | Upload / Download | ✅ Available | Single Node Mode | ✅ Available | | Versioning | ✅ Available | Bucket Replication | ✅ Available | | Logging | ✅ Available | Lifecycle Management | 🚧 Under Testing | | Event Notifications | ✅ Available | Distributed Mode | 🚧 Under Testing | | K8s Helm Charts | ✅ Available | RustFS KMS | 🚧 Under Testing |
RustFS vs MinIO Performance
Stress Test Environment:
| Type | Parameter | Remark | | ------- | --------- | -------------------------------------------------------- | | CPU | 2 Core | Intel Xeon (Sapphire Rapids) Platinum 8475B, 2.7/3.2 GHz | | Memory | 4GB | | | Network | 15Gbps | | | Drive | 40GB x 4 | IOPS 3800 / Drive |
https://github.com/user-attachments/assets/2e4979b5-260c-4f2c-ac12-c87fd558072a
RustFS vs Other Object Storage
| Feature | RustFS | Other Object Storage | | :--------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------- | | Console Experience | Powerful ConsoleComprehensive management interface. | Basic / Limited ConsoleOften overly simple or lacking critical features. | | Language & Safety | Rust-basedMemory safety by design. | Go or C-basedPotential for memory GC pauses or leaks. | | Data Sovereignty | No Telemetry / Full ComplianceGuards against unauthorized cross-border data egress. Compliant with GDPR (EU/UK), CCPA (US), and APPI (Japan). | Potential RiskPossible legal exposure and unwanted data telemetry. | | Licensing | Permissive Apache 2.0Business-friendly, no "poison pill" clauses. | Restrictive AGPL v3Risk of license traps and intellectual property pollution. | | Compatibility | 100% S3 CompatibleWorks with any cloud provider or client, anywhere. | Variable CompatibilityMay lack support for local cloud vendors or specific APIs. | | Edge & IoT | Strong Edge SupportIdeal for secure, innovative edge devices. | Weak Edge SupportOften too heavy for edge gateways. | | Risk Profile | Enterprise Risk MitigationClear IP rights and safe for commercial use. | Legal RisksIntellectual property ambiguity and usage restrictions. |
Staying ahead
Star RustFS on GitHub and be instantly notified of new releases.
Quickstart
To get started with RustFS, follow these steps:
1. One-click Installation (Option 1)
curl -O https://rustfs.com/install_rustfs.sh && bash install_rustfs.sh
2. Docker Quick Start (Option 2)
The RustFS container runs as a non-root user rustfs (UID 10001). If you run Docker with -v to mount a host directory, please ensure the host directory owner is set to 10001, otherwise you will encounter permission denied errors.
# Create data and logs directories mkdir -p data logs # Change the owner of these directories chown -R 10001:10001 data logs # Using latest version docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest # Using specific version docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:1.0.0-alpha.76
If you use podman instead of docker, you can install the RustFS with the below command
podman run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest
You can also use Docker Compose. Using the docker-compose.yml file in the root directory:
docker compose --profile observability up -d
Similarly, you can run the command with podman
podman compose --profile observability up -d
NOTE: We recommend reviewing the docker-compose.yaml file before running. It defines several services including Grafana, Prometheus, and Jaeger, which are helpful for RustFS observability. If you wish to start Redis or Nginx containers, you can specify the corresponding profiles.
3. Build from Source (Option 3) - Advanced Users
For developers who want to build RustFS Docker images from source with multi-architecture support:
# Build multi-architecture images locally ./docker-buildx.sh --build-arg RELEASE=latest # Build and push to registry ./docker-buildx.sh --push # Build specific version ./docker-buildx.sh --release v1.0.0 --push # Build for custom registry ./docker-buildx.sh --registry your-registry.com --namespace yourname --push
The docker-buildx.sh script supports:
- Multi-architecture builds:
linux/amd64,linux/arm64 - Automatic version detection: Uses git tags or commit hashes
- Registry flexibility: Supports Docker Hub, GitHub Container Registry, etc.
- Build optimization: Includes caching and parallel builds
You can also use Make targets for convenience:
make docker-buildx # Build locally make docker
优点
- 由于 Rust 的高效性而具有高性能
- 完全兼容 S3,便于集成
- 在 Apache 2.0 许可证下开源
- 用户友好的部署和管理
缺点
- 某些功能仍在测试中
- 源代码构建可能需要高级知识
- 与更成熟的解决方案相比,社区较小
- Docker 可能存在权限问题
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 rustfs.
