Repository navigation
Make main a safe drop-in for the prod image: atproto 0.0.69, bounded Redis trim - #14
Merged
Merged
Conversation
…Redis trim Prod runs an older lineage that pins atproto 0.0.69 (0.0.65 rejects app.bsky.embed.gallery and fails whole hydration chunks) and trims the hydrated_jetstream stream to ~100 entries, about two seconds of firehose, so its websocket reader loses contiguous runs at every burst. Pin the version prod needs and add REDIS_TRIM_MAXLEN (default 20000, 0 = off); main previously never trimmed at all. 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.
Follow-up to #13, needed before main can replace the image prod runs (
20260904-timeus-envelope, an older code lineage built as an overlay).app.bsky.embed.gallery(the 8/17 freshness incident).REDIS_TRIM_MAXLEN, default 20000 (0 = unbounded). Prod trimshydrated_jetstreamto ~100 entries, about 2 s of firehose. Its reader (feed-processorredis_streamer) resumes from its own last id, so any lag over ~2 s at a :00/:30 burst trims posts out from under it. Replaying Bluesky jetstream against the S3 archive found exactly that: contiguous runs of 8-53 posts missing at bursts. Main previously never trimmed, which would grow ElastiCache without bound. 20k entries ≈ 7 min of lag tolerance, ~80 MB at the p50 enriched size (~3.3 KB). The reader only replays the newest 25 on connect, so a longer stream adds no replay flood.39 tests pass (2 new).
🤖 Generated with Claude Code