Files
rustfs/README_ZH.md
houseme 9495df6d5e refactor(deps): centralize crate versions in root Cargo.toml (#448)
* chore(ci): upgrade protoc from 30.2 to 31.1

- Update protoc version in GitHub Actions setup workflow
- Use arduino/setup-protoc@v3 to install the latest protoc version
- Ensure compatibility with current project requirements
- Improve proto file compilation performance and stability

This upgrade aligns our development environment with the latest protobuf standards.

* modify package version

* refactor(deps): centralize crate versions in root Cargo.toml

- Move all dependency versions to workspace.dependencies section
- Standardize AWS SDK and related crates versions
- Update tokio, bytes, and futures crates to latest stable versions
- Ensure consistent version use across all workspace members
- Implement workspace inheritance for common dependencies

This change simplifies dependency management and ensures version consistency across the project.

* fix

* modify
2025-06-07 22:22:26 +08:00

2.9 KiB
Raw Blame History

RustFS

English Documentation |中文文档

前置要求

软件包 版本 下载链接
Rust 1.8.5+ rust-lang.org/tools/install
protoc 31.1+ protoc-31.1-linux-x86_64.zip
flatc 24.0+ Linux.flatc.binary.g++-13.zip

构建 RustFS

生成 Protobuf 代码

cargo run --bin gproto

使用 Docker 安装依赖

- uses: arduino/setup-protoc@v3
  with:
    version: "30.2"

- uses: Nugine/setup-flatc@v1
  with:
    version: "25.2.10"

添加控制台 Web UI

  1. 下载最新的控制台 UI
    wget https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip
    
  2. 创建静态资源目录:
    mkdir -p ./rustfs/static
    
  3. 解压并编译 RustFS
    unzip rustfs-console-latest.zip -d ./rustfs/static
    cargo build
    

运行 RustFS

配置

设置必要的环境变量:

# 基础配置
export RUSTFS_VOLUMES="./target/volume/test"
export RUSTFS_ADDRESS="0.0.0.0:9000"
export RUSTFS_CONSOLE_ENABLE=true
export RUSTFS_CONSOLE_ADDRESS="0.0.0.0:9001"

# 可观测性配置
export RUSTFS_OBS_ENDPOINT="http://localhost:4317"

# 事件消息配置
#export RUSTFS_EVENT_CONFIG="./deploy/config/event.toml"

启动服务

./rustfs /data/rustfs

可观测性系统 Otel 和 OpenObserve

OpenTelemetry Collector 和 Jaeger、Grafana、Prometheus、Loki

  1. 进入可观测性目录:

    cd .docker/observability
    
  2. 启动可观测性系统:

    docker compose -f docker-compose.yml  up -d
    

访问监控面板

  • Grafana: http://localhost:3000 (默认账号/密码:admin/admin)
  • Jaeger: http://localhost:16686
  • Prometheus: http://localhost:9090

配置可观测性

OpenTelemetry Collector 地址(endpoint):  http://localhost:4317 

OpenObserve 和 OpenTelemetry Collector

  1. 进入 OpenObserve 和 OpenTelemetry 目录:
    cd .docker/openobserve-otel
    
  2. 启动 OpenObserve 和 OpenTelemetry Collector 服务:
    docker compose -f docker-compose.yml up -d
    
  3. 访问 OpenObserve UI OpenObserve UI: http://localhost:5080
    • 默认凭据:
      • 用户名:root@rustfs.com
      • 密码:rustfs123
    • 开放端口:
      • 5080HTTP API 和 UI
      • 5081OTLP gRPC