Add PostgreSQL connection pooling comparison scripts and functionality - #75
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Demo scenario and CLI command to simulate/compare PostgreSQL connection pooling modes on Azure burstable instances, plus helper scripts to run multi-mode and pool-size comparison runs and generate merged CSVs/graphs.
Changes:
- Introduces
azure-pgsql-poolingdemo command andAzurePgsqlPoolingScenariorunner. - Adds
PostgresQuery,PoolingMode, and a simpleConnectionPoolplus Azure DB service-time overhead modeling for pooling behaviors. - Adds Bash/PowerShell scripts to automate direct/session/transaction comparisons and pool-size sweeps.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| SimNextgenApp.Demo/Scenarios/AzurePgsqlPoolingScenario.cs | New scenario wiring generator/model/engine to simulate pooling modes and export results/telemetry. |
| SimNextgenApp.Demo/Program.cs | Adds demo azure-pgsql-pooling command and options parsing. |
| SimNextgenApp.Demo/AzureDbSample/PostgresQuery.cs | Adds PostgresQuery load type and PoolingMode enum to carry pooling metadata. |
| SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs | Adds a simple connection pool abstraction used by the scenario. |
| SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs | Extends service-time computation to include connection/setup/reset overhead for PostgresQuery. |
| SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh | Script to run all modes, back up CSVs, and generate combined outputs/graphs. |
| SimNextgenApp.Demo/AzureDbSample/pooling-comparison.ps1 | PowerShell equivalent of pooling comparison runner and graph generator. |
| SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh | Script to run session pooling across multiple pool sizes and generate summaries/graphs. |
| SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.ps1 | PowerShell equivalent for pool-size sweep and visualization. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…and update throttling logic
…PostgreSQL queries
…to prevent connection acquisition failures
…or session pooling connections
…ostgreSQL pooling
…e in command options
…e in session pooling mode
…nd exit gracefully
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…pool when exhausted
…for improved throttling accuracy
…ion and transaction pooling modes
… model for exhausted pool
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…emantics and connection acquisition behavior
…ex to preserve all data points
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… instead of average for improved accuracy
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…e to 5% of minimum latency for consistency
…d as doubles for accurate maximum calculations
…del behavior in connection acquisition
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…cy comparison charts and simplify output handling
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…InstanceSpec instances
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ec to clarify performance characteristics
…al pool size determination
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ability in recommendations
No description provided.