# ctripcorp/x-pipe

X-Pipe是由携程框架部门研发的Redis多数据中心复制管理系统。基于Redis的Master-Slave复制协议，实现低延时、高可用的Redis多数据中心、跨公网数据复制，并且提供一键机房切换，复制监控、异常报警等功能。开源版本和携程内部生产环境版本一致。

Repository: https://github.com/ctripcorp/x-pipe
Canonical: https://ross.abutalabs.com/products/x-pipe
Language: Java
License: Apache-2.0
License Family: permissive
Topics: redis, cross-datacenter, psync2, replication, long-distance-replication, keeper-redis, rdb, keeper, redis-xpipe, replication-over-public-network
Last push: 2026-08-26T02:42:36+00:00

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

## Adoption (not part of the score)
Stars 2091, forks 510 (observed 2026-08-28T04:06:12.414988+00:00)

## What it is
X-Pipe is Ctrip's Redis multi-datacenter replication management system built on Redis's master-slave replication protocol. It provides low-latency cross-datacenter (including cross-public-network) replication, one-click datacenter failover, replication monitoring, and alerting.

## Use cases
- replicate redis across multiple datacenters
- redis disaster recovery with datacenter failover
- sync redis data over the public internet between sites
- reduce redis master full sync load from remote slaves
- one-click redis datacenter switchover
- monitor redis replication lag and get alerts

## When to choose
- you run Redis in multiple datacenters and need DR or local reads
- you need cross-datacenter replication over public networks with buffered logs to survive network outages
- you want managed, monitored datacenter switchover with rollback support

## When to avoid
- you only run Redis in a single datacenter
- you need Redis Cluster's native multi-master or sharding features rather than async replication
- you cannot operate additional Java services (Console, Keeper, MetaServer) alongside Redis

## Facets
- artifact type: service
- maturity: active
- function: monitoring, alerting, caching, deployment, microservices
- domain: databases, microservices, infrastructure-as-code, self-hosted
- platform: jvm, self-hosted
- tags: redis, cross-datacenter, disaster-recovery, psync2, keeper, multi-dc-replication, dr-switching, replication, devops, docker, linux, web-server

## Member repositories
- ctripcorp/x-pipe (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.414988+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:55:32.733256+00:00, confidence not recorded.
  - readme: https://github.com/ctripcorp/x-pipe (fetched 2026-08-28T04:06:12.414988+00:00, sha 6d53e65759b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
