外观主题
阅读语言

Maylin —— 无 Docker 的 Rust 服务集群管理器

软件 本站软件 3天前 更新于 21小时前
https://yxp.hk/p/HDRRwd

📦 开源仓库:yxpil/maylin


Maylin — 无 Docker 的 Rust 服务集群管理器

CI
Release
License: MIT
Platform

📖 项目主页(含架构图与实测数据):https://yxpil.github.io/maylin/

通过 Rust 子进程直接管理任意数量的 JS / Python / 二进制实例(每个实例独占端口,无需 Docker),
以插件适配运行时,支持多服务器集群、Token 控制 API、命令终端、定时启动与负载均衡。

maylinctl / HTTP API / WS 终端
        │  Bearer Token
        ▼
┌─────────────────────────── maylind 节点 ───────────────────────────┐
│  进程管理器(子进程 supervisor)   插件(node/python/binary/自定义)    │
│  定时任务(cron)                 负载均衡(反向代理, 跨节点上游)      │
│  REST API + WebSocket 终端      集群 peers 聚合 / 动作广播          │
└───────────────────────────────────────────────────────────────────┘
   instance:demo-node:3001   instance:demo-python:3002   ...

安装

三种方式任选:

# 方式一:下载预编译二进制(Windows / Linux / macOS,见 Releases)
# https://github.com/yxpil/maylin/releases

# 方式二:从源码构建
git clone https://github.com/yxpil/maylin && cd maylin
cargo build --release

# 方式三:cargo install(从 git)
cargo install --git https://github.com/yxpil/maylin

快速开始

# 1. 启动(首次运行自动生成 config/ 默认配置 + 随机 Token + demo 示例)
target/release/maylin node --config config/maylin.toml

# 若想手动放置配置:cp -r config.example config 后修改即可(示例模板不含真实 Token)

# 2. 管理客户端
export MAYLIN_TOKEN=
export MAYLIN_URL=http://127.0.0.1:7000

maylin ctl instances              # 实例列表
maylin ctl start demo-node        # 启动 Node 实例 (:3001)
maylin ctl start demo-python      #