diff --git a/README.md b/README.md index cd35e5b5..787541db 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,11 @@ English | 简 Русский
-RustFS is a high-performance distributed object storage software built using Rust, one of the most popular languages worldwide. Along with MinIO, it shares a range of advantages such as simplicity, S3 compatibility, open-source nature, support for data lakes, AI, and big data. Furthermore, it has a better and more user-friendly open-source license in comparison to other storage systems, being constructed under the Apache license. As Rust serves as its foundation, RustFS provides faster speed and safer distributed features for high-performance object storage. +RustFS is a high-performance distributed object storage software built using Rust, one of the most popular languages +worldwide. Along with MinIO, it shares a range of advantages such as simplicity, S3 compatibility, open-source nature, +support for data lakes, AI, and big data. Furthermore, it has a better and more user-friendly open-source license in +comparison to other storage systems, being constructed under the Apache license. As Rust serves as its foundation, +RustFS provides faster speed and safer distributed features for high-performance object storage. > ⚠️ **RustFS is under rapid development. Do NOT use in production environments!** @@ -46,27 +50,27 @@ RustFS is a high-performance distributed object storage software built using Rus Stress test server parameters -| Type | parameter | Remark | -| - | - | - | -|CPU | 2 Core | Intel Xeon(Sapphire Rapids) Platinum 8475B , 2.7/3.2 GHz| | -|Memory| 4GB | | -|Network | 15Gbp | | -|Driver | 40GB x 4 | IOPS 3800 / Driver | +| Type | parameter | Remark | +|---------|-----------|----------------------------------------------------------| +| CPU | 2 Core | Intel Xeon(Sapphire Rapids) Platinum 8475B , 2.7/3.2 GHz | | +| Memory | 4GB | | +| Network | 15Gbp | | +| Driver | 40GB x 4 | IOPS 3800 / Driver |
-
-
## License
[Apache 2.0](https://opensource.org/licenses/Apache-2.0)
diff --git a/README_ZH.md b/README_ZH.md
index d6697a9e..2a562daf 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -21,7 +21,9 @@
English | 简体中文
-RustFS 是一个使用 Rust(全球最受欢迎的编程语言之一)构建的高性能分布式对象存储软件。与 MinIO 一样,它具有简单性、S3 兼容性、开源特性以及对数据湖、AI 和大数据的支持等一系列优势。此外,与其他存储系统相比,它采用 Apache 许可证构建,拥有更好、更用户友好的开源许可证。由于以 Rust 为基础,RustFS 为高性能对象存储提供了更快的速度和更安全的分布式功能。
+RustFS 是一个使用 Rust(全球最受欢迎的编程语言之一)构建的高性能分布式对象存储软件。与 MinIO 一样,它具有简单性、S3
+兼容性、开源特性以及对数据湖、AI 和大数据的支持等一系列优势。此外,与其他存储系统相比,它采用 Apache
+许可证构建,拥有更好、更用户友好的开源许可证。由于以 Rust 为基础,RustFS 为高性能对象存储提供了更快的速度和更安全的分布式功能。
## 特性
@@ -36,27 +38,27 @@ RustFS 是一个使用 Rust(全球最受欢迎的编程语言之一)构建
压力测试服务器参数
-| 类型 | 参数 | 备注 |
-| - | - | - |
-|CPU | 2 核心 | Intel Xeon(Sapphire Rapids) Platinum 8475B , 2.7/3.2 GHz| |
-|内存| 4GB | |
-|网络 | 15Gbp | |
-|驱动器 | 40GB x 4 | IOPS 3800 / 驱动器 |
+| 类型 | 参数 | 备注 |
+|-----|----------|----------------------------------------------------------|
+| CPU | 2 核心 | Intel Xeon(Sapphire Rapids) Platinum 8475B , 2.7/3.2 GHz | |
+| 内存 | 4GB | |
+| 网络 | 15Gbp | |
+| 驱动器 | 40GB x 4 | IOPS 3800 / 驱动器 |
-
## 许可证
[Apache 2.0](https://opensource.org/licenses/Apache-2.0)
diff --git a/docs/examples/README.md b/docs/examples/README.md
index 4224bb5b..401ff89e 100644
--- a/docs/examples/README.md
+++ b/docs/examples/README.md
@@ -9,6 +9,7 @@ This directory contains practical deployment examples and configurations for Rus
Complete Docker Compose example for deploying RustFS in a 4-node, 4-drive-per-node configuration.
**Features:**
+
- Proper disk indexing (1..4) to avoid VolumeNotFound errors
- Startup coordination via `wait-and-start.sh` script
- Service discovery using Docker service names
@@ -18,25 +19,47 @@ Complete Docker Compose example for deploying RustFS in a 4-node, 4-drive-per-no
**Use Case:** Production-ready multi-node deployment for high availability and performance.
**Quick Start:**
+
```bash
cd docs/examples/mnmd
docker-compose up -d
```
**See also:**
+
- [MNMD README](./mnmd/README.md) - Detailed usage guide
- [MNMD CHECKLIST](./mnmd/CHECKLIST.md) - Step-by-step verification
## Other Deployment Examples
For additional deployment examples, see:
-- [`examples/`](/examples/) - Root-level examples directory with:
- - `docker-quickstart.sh` - Quick start script for basic deployments
- - `enhanced-docker-deployment.sh` - Advanced deployment scenarios
- - `docker-comprehensive.yml` - Docker Compose with multiple profiles
+
+- [`docker/`](./docker/) - Root-level examples directory with:
+ - `docker-quickstart.sh` - Quick start script for basic deployments, Quickstart script (basic
+ /dev/prod/status/test/cleanup)
+ - `enhanced-docker-deployment.sh` - Advanced deployment scenarios, Advanced deployment script with multiple
+ scenarios and detailed logs (basic /dev/prod/all/status/test/logs/cleanup)
+ - `enhanced-security-deployment.sh` - Production-ready scripts with TLS, throttling, and secure credential
+ generation
+ - `docker-comprehensive.yml` - Docker Compose with multiple profiles, Docker Compose files containing multiple
+ profiles (basic / dev / production / enterprise / api-only / nginx, etc.)
+ - Usage example:
+ ```bash
+ # Rapid development environment
+ ./docs/examples/docker/docker-quickstart.sh dev
+
+ # Start dev profile using Docker Compose
+ docker-compose -f docs/examples/docker/docker-comprehensive.yml --profile dev up -d
+
+ # Secure deployment
+ ./docs/examples/docker/enhanced-security-deployment.sh
+ ```
+ - Note: If the original CI or other documents refer to the old path `examples/`, please update it to
+ `docs/examples/docker/`. Relative links within the document are already in this README.
+
- [`.docker/compose/`](/.docker/compose/) - Docker Compose configurations:
- - `docker-compose.cluster.yaml` - Basic cluster setup
- - `docker-compose.observability.yaml` - Observability stack integration
+ - `docker-compose.cluster.yaml` - Basic cluster setup
+ - `docker-compose.observability.yaml` - Observability stack integration
## Related Documentation
@@ -47,6 +70,7 @@ For additional deployment examples, see:
## Contributing
When adding new examples:
+
1. Create a dedicated subdirectory under `docs/examples/`
2. Include a comprehensive README.md
3. Provide working configuration files
@@ -56,5 +80,6 @@ When adding new examples:
## Support
For issues or questions:
+
- GitHub Issues: https://github.com/rustfs/rustfs/issues
-- Documentation: https://rustfs.io
+- Documentation: https://rustfs.com/docs
diff --git a/examples/README.md b/docs/examples/docker/README.md
similarity index 86%
rename from examples/README.md
rename to docs/examples/docker/README.md
index 6c5262d2..1c98ad1e 100644
--- a/examples/README.md
+++ b/docs/examples/docker/README.md
@@ -1,10 +1,12 @@
# RustFS Docker Deployment Examples
-This directory contains various deployment scripts and configuration files for RustFS with console and endpoint service separation.
+This directory contains various deployment scripts and configuration files for RustFS with console and endpoint service
+separation.
## Quick Start Scripts
### `docker-quickstart.sh`
+
The fastest way to get RustFS running with different configurations.
```bash
@@ -28,6 +30,7 @@ The fastest way to get RustFS running with different configurations.
```
### `enhanced-docker-deployment.sh`
+
Comprehensive deployment script with multiple scenarios and detailed logging.
```bash
@@ -51,7 +54,9 @@ Comprehensive deployment script with multiple scenarios and detailed logging.
```
### `enhanced-security-deployment.sh`
-Production-ready deployment with enhanced security features including TLS, rate limiting, and secure credential generation.
+
+Production-ready deployment with enhanced security features including TLS, rate limiting, and secure credential
+generation.
```bash
# Deploy with security hardening
@@ -68,6 +73,7 @@ Production-ready deployment with enhanced security features including TLS, rate
## Docker Compose Examples
### `docker-comprehensive.yml`
+
Complete Docker Compose configuration with multiple deployment profiles.
```bash
@@ -106,6 +112,7 @@ docker-compose -f docker-comprehensive.yml --profile dev up -d
```
**Access Points:**
+
- API: http://localhost:9010 (or 9030 for enhanced)
- Console: http://localhost:9011/rustfs/console/ (or 9031 for enhanced)
- Credentials: dev-admin / dev-secret
@@ -121,6 +128,7 @@ docker-compose -f docker-comprehensive.yml --profile dev up -d
```
**Features:**
+
- TLS encryption for console
- Rate limiting enabled
- Restricted CORS policies
@@ -194,13 +202,13 @@ curl http://localhost:9001/health
### Port Mappings
-| Deployment | API Port | Console Port | Description |
-|-----------|----------|--------------|-------------|
-| Basic | 9000 | 9001 | Simple deployment |
-| Dev | 9010 | 9011 | Development environment |
-| Prod | 9020 | 9021 | Production-like setup |
-| Enterprise | 9030 | 9443 | Enterprise with TLS |
-| API-Only | 9040 | - | API endpoint only |
+| Deployment | API Port | Console Port | Description |
+|------------|----------|--------------|-------------------------|
+| Basic | 9000 | 9001 | Simple deployment |
+| Dev | 9010 | 9011 | Development environment |
+| Prod | 9020 | 9021 | Production-like setup |
+| Enterprise | 9030 | 9443 | Enterprise with TLS |
+| API-Only | 9040 | - | API endpoint only |
### Network Isolation
@@ -213,11 +221,13 @@ Production deployments use network isolation:
## Security Considerations
### Development
+
- Permissive CORS policies for easy testing
- Debug logging enabled
- Default credentials for simplicity
-### Production
+### Production
+
- Restrictive CORS policies
- TLS encryption for console
- Rate limiting enabled
@@ -226,6 +236,7 @@ Production deployments use network isolation:
- Network isolation
### Enterprise
+
- Complete TLS encryption
- Advanced rate limiting
- Authentication timeouts
@@ -260,11 +271,12 @@ docker exec rustfs-container netstat -tulpn | grep -E ':(9000|9001)'
## Migration from Previous Versions
-See [docs/console-separation.md](../docs/console-separation.md) for detailed migration instructions from single-port deployments to the separated architecture.
+See [docs/console-separation.md](../../console-separation.md) for detailed migration instructions from single-port
+deployments to the separated architecture.
## Additional Resources
-- [Console Separation Documentation](../docs/console-separation.md)
-- [Docker Compose Configuration](../docker-compose.yml)
-- [Main Dockerfile](../Dockerfile)
-- [Security Best Practices](../docs/console-separation.md#security-hardening)
\ No newline at end of file
+- [Console Separation Documentation](../../console-separation.md)
+- [Docker Compose Configuration](../../../docker-compose.yml)
+- [Main Dockerfile](../../../Dockerfile)
+- [Security Best Practices](../../console-separation.md#security-hardening)
\ No newline at end of file
diff --git a/examples/docker-comprehensive.yml b/docs/examples/docker/docker-comprehensive.yml
similarity index 100%
rename from examples/docker-comprehensive.yml
rename to docs/examples/docker/docker-comprehensive.yml
diff --git a/examples/docker-quickstart.sh b/docs/examples/docker/docker-quickstart.sh
similarity index 100%
rename from examples/docker-quickstart.sh
rename to docs/examples/docker/docker-quickstart.sh
diff --git a/examples/enhanced-docker-deployment.sh b/docs/examples/docker/enhanced-docker-deployment.sh
similarity index 100%
rename from examples/enhanced-docker-deployment.sh
rename to docs/examples/docker/enhanced-docker-deployment.sh
diff --git a/examples/enhanced-security-deployment.sh b/docs/examples/docker/enhanced-security-deployment.sh
similarity index 100%
rename from examples/enhanced-security-deployment.sh
rename to docs/examples/docker/enhanced-security-deployment.sh