awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
postgresml avatar

postgresml/pgcat

0
View on GitHub↗
3,966 星标·265 分支·Rust·MIT·5 次浏览

Pgcat

Pgcat 是一个 PostgreSQL 中间件解决方案,提供连接池、分片、负载均衡和故障转移管理。它作为一个代理,通过管理数据库会话并将查询分发到多个实例来优化资源使用和可扩展性。

该系统通过流量镜像脱颖而出,它将实时生产查询复制到测试数据库以进行验证。它还实现了分片代理,根据分片键将数据和查询分发到多个数据库实例。

该项目通过自动故障转移和服务器健康监控涵盖了高可用性。它包括用于分离读写操作的流量路由、用于加密通信的传输层安全 (TLS),以及用于系统管理和性能指标导出的虚拟管理数据库。

该服务打包为 Docker 容器,以确保在不同环境中的一致部署。

Features

  • PostgreSQL Pool Managers - Manages a pool of database connections specifically tailored for the PostgreSQL wire protocol to optimize resource usage.
  • Database Connection Pooling - Manages a pool of reusable backend sessions to reduce the overhead of establishing new database connections.
  • SQL Comment Based Routing - Routes queries to specific data partitions using sharding keys extracted from SQL comments or hashing functions.
  • Query Routing - Directs queries to specific data partitions using automatic key detection, SQL comments, or custom syntax.
  • Horizontal Database Scaling - Distributes data across multiple database instances to scale storage and throughput through horizontal expansion.
  • PostgreSQL Database Sharding - Splits data across multiple PostgreSQL servers to scale storage and processing by routing queries via sharding keys.
  • PostgreSQL Load Balancers - Provides a protocol-aware proxy to distribute read queries across multiple PostgreSQL backend instances.
  • Traffic Routing - Analyzes incoming SQL to automatically direct read-only requests to replicas and write operations to the primary server.
  • Replica Load Balancers - Distributes incoming queries across a cluster of available replicas to prevent single-instance bottlenecks.
  • Read Load Balancers - Distributes read requests across multiple replicas using random or least-connection algorithms.
  • Sharding Proxies - Acts as a routing layer that distributes queries across multiple database instances based on sharding keys.
  • Database Failover Routers - Redirects traffic to a healthy standby instance when a primary node becomes unavailable to maintain uptime.
  • Database High Availability - Coordinates PostgreSQL nodes to ensure continuous service availability through automated failover and health monitoring.
  • Database Failover Management - Monitors backend server health and automatically reroutes traffic to standby instances during primary node failure.
  • Health-Based Traffic Rerouting - Monitors backend server availability via periodic probes and automatically reroutes traffic away from unresponsive nodes.
  • Upstream Health Monitoring - Performs periodic health checks on backend servers and temporarily blocks unresponsive nodes to ensure stability.
  • Database Query Mirroring - Duplicates incoming production queries to test databases to validate new versions or warm up caches.
  • Database Connection Encryption - Encrypts communication between clients, the proxy, and database servers using TLS certificates.
  • Database Authentication - Validates client identities using secure hashing or external query passthrough to manage database access.
  • Transport Layer Security - Secures data in transit between clients and backend servers using certificates and private keys.
  • Administrative Command Engines - Executes system management tasks and inspects pool status through a dedicated administrative interface.
  • Virtual Administrative Databases - Provides a dedicated virtual administrative database for executing system commands and inspecting pool health.

Star 历史

postgresml/pgcat 的 Star 历史图表postgresml/pgcat 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

postgresml/pgcat 是做什么的?

Pgcat 是一个 PostgreSQL 中间件解决方案,提供连接池、分片、负载均衡和故障转移管理。它作为一个代理,通过管理数据库会话并将查询分发到多个实例来优化资源使用和可扩展性。

postgresml/pgcat 的主要功能有哪些?

postgresml/pgcat 的主要功能包括:PostgreSQL Pool Managers, Database Connection Pooling, SQL Comment Based Routing, Query Routing, Horizontal Database Scaling, PostgreSQL Database Sharding, PostgreSQL Load Balancers, Traffic Routing。

postgresml/pgcat 有哪些开源替代品?

postgresml/pgcat 的开源替代品包括: pgdogdev/pgdog — pgdog is a PostgreSQL sharding proxy, distributed SQL router, and connection pooler. It is designed to enable… alibaba/alisql — AliSQL is a fork of MySQL by Alibaba that extends the relational database management system with enhancements for high… sysown/proxysql — ProxySQL is a database proxy designed to route and balance traffic between applications and MySQL or PostgreSQL… flike/kingshard — Kingshard is a MySQL database proxy and sharding middleware that routes SQL traffic between clients and multiple… vonng/pigsty — Pigsty is a comprehensive database infrastructure orchestration platform designed to automate the full lifecycle of… qihoo360/atlas — Atlas is a MySQL database proxy and middleware system designed to manage traffic between clients and database…

Pgcat 的开源替代方案

相似的开源项目,按与 Pgcat 的功能重合度排序。
  • pgdogdev/pgdogpgdogdev 的头像

    pgdogdev/pgdog

    3,361在 GitHub 上查看↗

    pgdog is a PostgreSQL sharding proxy, distributed SQL router, and connection pooler. It is designed to enable horizontal data distribution by splitting tables and indices across multiple independent servers to scale storage and processing capacity. The project distinguishes itself through online resharding capabilities, using logical replication to move data between shards without application downtime. It supports multiple routing strategies, including hash, list, and range-based query routing, and manages distributed atomic transactions using a two-phase commit process to ensure consistency

    Rustload-balancerpoolerpostgresql
    在 GitHub 上查看↗3,361
  • alibaba/alisqlalibaba 的头像

    alibaba/AliSQL

    5,706在 GitHub 上查看↗

    AliSQL is a fork of MySQL by Alibaba that extends the relational database management system with enhancements for high performance, scalability, and enterprise-grade availability. It retains the core MySQL identity as a SQL-based database for storing, organizing, and retrieving structured data, while adding optimizations for large-scale transactional and analytical workloads. The project differentiates itself through a set of Alibaba-specific improvements, including a columnar engine for accelerating analytical queries directly on MySQL tables, and a distributed, shared-nothing NDB Cluster en

    C++alisqldatabaseduckdb
    在 GitHub 上查看↗5,706
  • sysown/proxysqlsysown 的头像

    sysown/proxysql

    6,843在 GitHub 上查看↗

    ProxySQL is a database proxy designed to route and balance traffic between applications and MySQL or PostgreSQL servers. It provides database high availability by monitoring backend server health and automatically rerouting traffic to healthy nodes during failover events to prevent downtime. The system integrates with generative AI models by proxying requests through a protocol handler, creating a bridge that allows large language models to access structured data. The project includes capabilities for traffic management through automatic failover routing and cluster topology discovery. It op

    C++
    在 GitHub 上查看↗6,843
  • flike/kingshardflike 的头像

    flike/kingshard

    6,414在 GitHub 上查看↗

    Kingshard is a MySQL database proxy and sharding middleware that routes SQL traffic between clients and multiple database nodes. It functions as a load balancer, read-write splitter, and SQL query firewall to manage how data is accessed and distributed across a database infrastructure. The system implements data sharding using hash, range, or date strategies to split tables across multiple nodes. It enables read-write splitting by directing data modification requests to a master node while distributing read-only queries across a pool of slave replicas. The proxy provides traffic management t

    Gokingshardmysqlmysql-proxy
    在 GitHub 上查看↗6,414
  • 查看 Pgcat 的所有 30 个替代方案→