Files
nexus/wiki/concepts/多节点基础设施.md

60 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "多节点基础设施"
type: concept
tags: [infrastructure, homelab, self-hosted, networking]
---
## 定义
多节点基础设施是指由多个独立服务器/设备组成的混合系统各节点承担不同角色通过内网互联由统一入口VPS对外提供服务。
## 在家庭基础设施中的拓扑
```
[VPS1] — 公网入口FRPS + Caddy
│ FRP 隧道(内网 192.168.3.0/24
┌──────────────────────────────────────┐
│ [MacMini M4] — OpenClaw 主控节点 │
│ [Synology NAS] — 媒体 + 存储 │
│ [Ubuntu1] — 监控全家桶 │
│ [Ubuntu2] — n8n 引擎 + Gitea │
└──────────────────────────────────────┘
```
## 各节点角色
| 节点 | 主要职责 | 关键服务 |
|------|---------|---------|
| [[VPS1]] | 公网入口 + FRPS + Caddy | FRP Server, Caddy |
| [[Mac Mini]] | OpenClaw 主控 + 项目托管 | OpenClaw, vaultwarden, stq |
| [[Synology NAS DS718]] | 媒体 + 对象存储 | Jellyfin, MinIO, Zipline, Prometheus |
| [[Ubuntu1]] | 监控 + 应用服务 | Grafana, Prometheus, homarr, superset |
| [[Ubuntu2]] | 工作流引擎 + 开发工具 | n8n, Gitea, drawio |
## 关键连接模式
- **FRP 隧道**:所有节点通过 frpc 连接到 VPS1 FRPS实现公网访问
- **统一域名**:所有服务通过 *.ishenwei.online 域名暴露,解析到 VPS1
- **Caddy HTTPS**VPS1 Caddy 统一处理 TLS路由到各节点 FRP 端口
- **SOCKS5 代理**:各节点运行科学上网代理(端口 10808NAS 运行于 20170
## 监控架构
- [[Prometheus]] + [[Grafana]] 监控 Ubuntu1 + NAS 节点
- blackbox_exporter 检测内外网服务可用性([[合成监测]]
- Alertmanager 统一告警路由
## 优势
- 职责分离:单一节点故障不影响整体
- 横向扩展:可按需添加新节点
- 灵活暴露FRP 端口映射按需配置
## 风险
- 单点依赖VPS1 是所有公网访问的瓶颈(无备援)
- 内网安全:所有节点在同一 192.168.3.0/24 网段,缺乏微分段
- 科学上网NAS 代理仅本机监听,外部节点无法共享
## Aliases
- 多节点架构
- 混合基础设施
- Homelab