Repository navigation
chore(mosquitto): queue up to 10,000 messages per client - #147
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
A subscribing client is sent every retained message under its filter at once, and mosquitto silently drops whatever does not fit its outgoing queue: 1,000 messages by default. Large sites retain far more than that, so a client subscribing widely got only part of the state. That includes stagehand's hot list (one
connectedper module) and source clearing or sweeping retained state.Change
max_queued_messages 10000. A client that needs more than that can subscribe more narrowly, or refresh.At 3,000 systems and 15,000 modules (about 168,000 retained topics), the queue also limits what a single subscription can see. Source's startup sweep, which reads the broker while busy, found 2,090 of about 27,500 stale topics at 10,000 (385 at the default). PlaceOS/source#67 adds a clear and resync that works in rounds, so it's complete regardless of this limit.
🤖 Generated with Claude Code