Infrastructure 2024-09-15

Created a Local Environment for Experimenting with PostgreSQL and PgCat

Set up a local PostgreSQL and PgCat connection pooler environment with Prometheus, Grafana monitoring, and Locust load testing to observe the performance impact of connection pooling.

Read in: ja
Created a Local Environment for Experimenting with PostgreSQL and PgCat

Set up a local environment to experiment with PostgreSQL and PgCat.

bmf-san/postgresql-pgcat-example

You can tune parameters of PostgreSQL and PgCat and perform load testing locally.

The setup includes:

I wanted to also handle PgBouncer, but the configuration became cumbersome, and I gave up halfway.

I was motivated by the desire to observe the impact of connection pooling on performance effectively, but I haven't been able to verify it satisfactorily yet.

I also think it would be good to observe the impact of parameter tuning of PostgreSQL and PgCat on performance, but I haven't been able to do it satisfactorily yet. (I got exhausted while adjusting the environment...orz)

Tags: Load Testing PgCat PostgreSQL Grafana Prometheus
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles