# Tencent/phxsql

A high availability MySQL cluster that guarantees data consistency between a master and slaves.

Repository: https://github.com/Tencent/phxsql
Canonical: https://ross.abutalabs.com/products/phxsql
Language: C++
License: NOASSERTION
License Family: other
Last push: 2018-12-25T10:38:56+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3656, "days_push": 2808, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2446, forks 545 (observed 2026-08-28T04:06:52.681645+00:00)

## What it is
PhxSQL is a high-availability, strongly consistent MySQL cluster built on Paxos and Percona, developed by Tencent. It replaces semi-sync replication with Paxos-based binlog synchronization to guarantee zero-loss replication and automatic failover without external dependencies like ZooKeeper or etcd.

## Use cases
- run a highly available MySQL cluster with automatic failover
- guarantee zero data loss between MySQL master and slaves
- deploy a MySQL cluster without ZooKeeper or etcd
- achieve ZooKeeper-strength linearizable consistency for MySQL data
- hot-reconfigure cluster membership without downtime
- keep a MySQL cluster working as long as a majority of nodes are up

## When to choose
- you need strong consistency and zero-loss replication for MySQL
- you want automatic failover with no external coordination service
- you need MySQL client compatibility up to serializable isolation
- you prefer a self-contained cluster with few components

## When to avoid
- you need a actively maintained solution - the last release was in 2018
- you use MySQL 8.x or non-Percona MySQL versions
- you prefer managed cloud databases or MySQL Group Replication/InnoDB Cluster
- your workload is read-heavy and async replication is acceptable

## Facets
- artifact type: service
- maturity: maintenance
- function: database, caching, rpc
- domain: databases, microservices, self-hosted
- platform: cpp, self-hosted
- tags: mysql-cluster, paxos, high-availability, strong-consistency, percona, replication, automatic-failover, linux

## Member repositories
- Tencent/phxsql (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:52.681645+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:30:32.315716+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/phxsql (fetched 2026-08-28T04:06:52.681645+00:00, sha 5c0cd3beee13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
