Repository navigation
fix: 文件描述符软上限提到 65536,匿名推送限 1000 条同时在线 - #109
Merged
Merged
Conversation
stqfdyr
added a commit
to monitor-probe/monitor-document
that referenced
this pull request
Oct 10, 2026
- 开发者文档「推送压缩」之后新增「同时在线的上限」:匿名 `/api/ws` 同时最多 1000 条,超出的握手回 503,登录会话不计入;主题应退回轮询 `/api/nodes` 并隔一段时间再试。 - 对应 hub 的 monitor-probe/monitor#109,随该 PR 发布的 hub 版本生效。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RLIMIT_NOFILE提到 65536(不超过硬上限)。systemd 与 Docker 的默认软上限都是 1024,约一千条连接时accept报 EMFILE 被静默重试,hub 停止响应且日志里没有任何记录。上限提不上去时启动日志里有一条警告。/api/ws推送同时最多 1000 条,超出回 503,页面退回轮询/api/nodes;登录会话的推送不计入。prlimit --nofile=1024:524288):改前软上限 64 时 50 条匿名连接即让/api/me5 秒无响应;改后软上限启动即为 65536,1500 条匿名连接 1000 条建立、500 条被拒,/api/me与/api/nodes30 毫秒内响应。--help与--reset-password返回之后,两者的输出不带日志行。outbound_ip与分片上传两处注释里过时的说法。