pgcat
pgbouncer_exporter
pgcat | pgbouncer_exporter | |
---|---|---|
9 | 1 | |
1,511 | 129 | |
- | 2.3% | |
9.6 | 6.2 | |
about 1 year ago | 6 days ago | |
Rust | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pgcat
-
PostgreSQL with PGBouncer
You should check out https://github.com/levkk/pgcat
-
pgcat: a PostgreSQL pooler
I created a pool called "yugabyte" (pools.yugabyte), with pool mode 'session', so that a session remains connected to a backend. I created a pool of servers in pools.yugabyte.shards.0 (yugabyte shards pool 0), with all three of the YSQL nodes in the YugabyteDB cluster, and gave one the role of "primary" and the two others the role of "replica". For YugabyteDB YSQL this does not make sense. Currently, pgcat allows to have the roles to be all "replica", but not have more than one "primary".
-
Postgres Connection Pooling and Proxies
pgcat is pgbouncer rewritten in Rust with support for load balancing between replicas, failover in case a replica fails a health check, and sharding at the pooler level.
- pgcat - PgBouncer rewritten in Rust, with sharding, load balancing and failover support.
- Show HN: PgCat, Postgres pooler with sharding, load balancing and failover
-
Hacker News top posts: Feb 9, 2022
Show HN: PgCat, Postgres pooler with sharding, load balancing and failover\ (38 comments)
-
PgCat: Postgres pooler with sharding, load balancing and failover support
This is actually pretty amazing. I wouldn't normally trust a single author implemented project to sit between my application and my database, since that is a rather critical single point of failure. However, a grep that fails to find `unsafe` in a rust code base lets me know that this code is in fact pretty safe[1]. I don't need to trust the author, as much as I trust the Rust core team, and LLVM.
Since I can see basic functionality exercised in the test suites, and trust that Rust has validated its more general correctness, this gives me more confidence in your project than I would historically expect to be able to gather in such a short amount of time.
1: https://github.com/levkk/pgcat/search?q=unsafe
pgbouncer_exporter
-
PgCat: Postgres pooler with sharding, load balancing and failover support
Pgbouncer does have stats, you can get them using the `SHOW STATS` family of commands. You can then either manually scrape them or use something like pgbouncer_exporter[1] for Prometheus.
[1] https://github.com/prometheus-community/pgbouncer_exporter
What are some alternatives?
pgbouncer - lightweight connection pooler for PostgreSQL
odyssey - Scalable PostgreSQL connection pooler
cloudpilot-emu - A PalmOS emulator for the web
pgcat - Enhanced PostgreSQL logical replication
PostgreSQL - Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch
pgjdbc - Postgresql JDBC Driver
yugabyte-db - YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
Cargo - The Rust package manager