此目录包含 Retire-Cluster 分布式计算系统的完整中文文档。
git clone https://github.com/yourusername/retire-cluster.git
cd retire-cluster
./docker/deploy.sh
pip install retire-cluster
retire-cluster-main --init-config
http://main-node:8080 (TCP套接字服务器)http://main-node:5000 (HTTP界面)http://main-node:8080/api/health# CLI风格命令(通过Web界面)
devices list --status=online
cluster status
tasks submit echo --payload='{"message":"hello"}'
monitor logs --tail=100
# REST API调用
curl http://main-node:5000/text/devices
curl http://main-node:5000/api/v1/cluster/status
主节点 (NAS/服务器) 工作节点 (分布式设备)
┌─────────────────────┐ ┌──────────────────────────┐
│ ┌─────────────────┐ │ │ Android │ 笔记本 │ 树莓派 │
│ │ 核心系统 │ │◄───────►│ Termux │ 原生 │ ARM │
│ │ 设备注册表 │ │ │ │ │ │
│ │ 任务调度器 │ │ │ ┌─────────────────────┐ │
│ │ 心跳监控器 │ │ │ │ 设备分析器 │ │
│ └─────────────────┘ │ │ │ 系统监控器 │ │
│ │ │ │ 任务执行器 │ │
│ ┌─────────────────┐ │ │ └─────────────────────┘ │
│ │ Web仪表板 │ │ └──────────────────────────┘
│ │ 终端UI │ │
│ │ REST API │ │
│ │ 实时SSE │ │
│ └─────────────────┘ │
└─────────────────────┘
添加新文档时: