alireza0:S-UI 保持单服务器面板,多节点方案宜另建项目
alireza0 表示不会按当前形式合并多节点 PR #1369,S-UI 将保持小型单服务器面板。他指出,该提案增加 20 张表、代理发布与升级依赖,以及轮询写入、SSH 主机密钥和 root 权限、删节点后资源残留等问题。他建议将多节点功能做成通过 S-UI API 通信的独立项目,并把夹带的其他修复拆成小 PR。
作者原文@alireza0Thanks for the work and for opening this as a discussion. Running your own node system for ten months clearly shows.
I won't merge it into the panel in this form. S-UI is meant to stay a small, single-server panel, and this PR roughly doubles its scope: 20 new tables, an agent in every release, and node hooks in clients, subscriptions, backup and upgrade. It also costs users who never add a node, and a few points worry me:
- The controller runs unconditionally. Each node is polled every 1–2 s over a new SSH connection, with about 10 SQLite writes per second even when nothing changes.
- The first SSH connection accepts any host key and then sends the root password. The installed key is effectively a root shell on every node.
- Every panel update restarts all agents without the operator confirming. A panel update also fails if the agent bundle can't be installed.
- Deleting a node leaves the agent, the authorized key and the firewall rules on the host.
- Unrelated changes are bundled in: the session cookie name, the Clash snell/realm/tuic/http changes, the mixed links,
online_at,editbulk, the JSON subscription refactor and the backup rewrite.I think it would work best as a separate project that talks to S-UI through its API. If you'd like, please send the unrelated fixes as small separate PRs and I'll gladly review them.