Skip to content

Add PostgreSQL connection pooling comparison scripts and functionality - #75

Merged
goh-chunlin merged 32 commits into
mainfrom
74_postgresql-connection-pooling-simulation
Apr 11, 2026
Merged

goh-chunlin merged 32 commits into
mainfrom
74_postgresql-connection-pooling-simulation

Conversation

@goh-chunlin

Copy link
Copy Markdown
Member

No description provided.

@goh-chunlin goh-chunlin linked an issue Apr 10, 2026 that may be closed by this pull request
@goh-chunlin goh-chunlin added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 10, 2026
@goh-chunlin
goh-chunlin requested a review from Copilot April 10, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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-pooling demo command and AzurePgsqlPoolingScenario runner.
  • Adds PostgresQuery, PoolingMode, and a simple ConnectionPool plus 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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs
Comment thread SimNextgenApp.Demo/Scenarios/AzurePgsqlPoolingScenario.cs
Comment thread SimNextgenApp.Demo/Scenarios/AzurePgsqlPoolingScenario.cs
Comment thread SimNextgenApp.Demo/Program.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.ps1 Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs Outdated
Comment thread SimNextgenApp.Demo/Program.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs
@goh-chunlin
goh-chunlin requested a review from Copilot April 10, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.ps1 Outdated
@goh-chunlin
goh-chunlin requested a review from Copilot April 10, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/Program.cs
Comment thread SimNextgenApp.Demo/Program.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.ps1 Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/Scenarios/AzurePgsqlPoolingScenario.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.ps1 Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.ps1 Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.ps1 Outdated
Comment thread SimNextgenApp.Demo/Scenarios/AzurePgsqlPoolingScenario.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbInstanceSpec.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbInstanceSpec.cs Outdated
Comment thread SimNextgenApp.Demo/AzureDbSample/pooling-comparison.sh
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SimNextgenApp.Demo/AzureDbSample/AzureDbBehavior.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/ConnectionPool.cs
Comment thread SimNextgenApp.Demo/AzureDbSample/pool-size-comparison.sh Outdated
@goh-chunlin
goh-chunlin merged commit e4419af into main Apr 11, 2026
1 check passed
@goh-chunlin
goh-chunlin deleted the 74_postgresql-connection-pooling-simulation branch April 11, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement PostgreSQL Connection Pooling Simulation for AzureDB

2 participants