Skip to content

Perf/postgres optimizations - #209

Merged
untergeek merged 11 commits into
release/0.5.3from
perf/postgres-optimizations
Sep 15, 2026
Merged

untergeek merged 11 commits into
release/0.5.3from
perf/postgres-optimizations

Conversation

@Codyjackson0321

Copy link
Copy Markdown
Collaborator

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.

@untergeek
untergeek self-requested a review September 15, 2026 20:03
Comment thread docker/docker-compose.yml
# ./logstashui_data stays owned by the operator. Empty → image appuser (10001).
- PUID=${PUID:-}
- PGID=${PGID:-}
- PUID=10001

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can revisit the hard code later, if needed. I don't think it will be.

| 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 |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@untergeek untergeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@untergeek
untergeek merged commit 7be6b74 into release/0.5.3 Sep 15, 2026
2 checks passed
@untergeek
untergeek deleted the perf/postgres-optimizations branch September 15, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants