Repository navigation
Investigate and eliminate PostgreSQL performance-test tail latency - #172
Merged
Merged
Conversation
14 tasks
Owner
Author
Performance comparisonAll rows below use the PostgreSQL in-process driver with 2,000 operations. Original issue baseline versus latest run — concurrency 4
Effect of removing executor-wide serialization
Latest end-to-end scaling
Concurrency 4 delivers 2.44× the concurrency-1 throughput. Latest end-to-end PostgreSQL phase diagnostics — concurrency 4
The remaining operation tails are now attributable to PostgreSQL write and commit phases rather than unexplained multi-second executor waits. |
Owner
Author
|
In simple words - the problem was not in the SDK itself, but rather in the examples code. |
Owner
Author
|
The profile ran five repetitions with 2,000 requests, a one-second warmup, and concurrency 1, 4, and 8. It produced 75 rows, 150,000 successful operations, and zero errors. For
|
10 tasks
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.
Motivation
PostgreSQL performance tests showed severe concurrency tail latency and little throughput improvement above concurrency 1.
Description
postgres-tailperformance profile with five repetitions, one-second warmup, and concurrency 1, 4, and 8.Results
For
PushNotify_EndToEndManyConfigsat concurrency 4:The focused validation completed 150,000 operations with zero errors. The results identify executor-wide serialization as the primary bottleneck; connection-pool wait remained negligible and the relevant PostgreSQL indexes were confirmed.
Closes #171.