Perf/postgres optimizations - #209
Merged
Merged
Conversation
… speed dramatically
…eliminated an extra query in agent check in
…app to make the newly achieved scale usable
untergeek
self-requested a review
September 15, 2026 20:03
untergeek
reviewed
Sep 15, 2026
| # ./logstashui_data stays owned by the operator. Empty → image appuser (10001). | ||
| - PUID=${PUID:-} | ||
| - PGID=${PGID:-} | ||
| - PUID=10001 |
Member
There was a problem hiding this comment.
We can revisit the hard code later, if needed. I don't think it will be.
untergeek
reviewed
Sep 15, 2026
| | Type | Throughput | Average | Median | p95 | p99 | Slowest | | ||
| |------|------------|---------|--------|-----|-----|---------| | ||
| | Docker Compose (SQLite) | 130 check-ins/s | 27 ms | 25 ms | 44 ms | 66 ms | 139 ms | | ||
| | systemd (PostgreSQL) | 130 check-ins/s | 22 ms | 17 ms | 49 ms | 87 ms | 274 ms | |
Member
There was a problem hiding this comment.
I love this. I hope people understand that an average of 22ms and a median of 17ms means that on the whole, PostgreSQL is way faster, in spite of the p95, p99, and "slowest" being slower than SQLite.
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.
Changed a hashing algorithm that allowed us to scale >100x higher from an agent check in perspective, allowing for thousands of agents instead of hundreds. Added documentation and results from scale tests, and made adjustments to the connection manager UI to add search / filtering so that the new scale is more usable.