Overview

Full name
docker.io/timescale/timescaledb-ha
Registry
docker.io
Namespace
timescale
Repository
timescaledb-ha
Cached tags
3511
Last synced
07/05/2026, 06:04 AM

Introduction

TimescaleDB HA 高可用时序数据库镜像,基于 PostgreSQL 扩展 hypertable,Patroni 集群自动故障转移,IoT 与监控指标长期存储。

Details

timescale/timescaledb-ha 打包 TimescaleDB 与 Patroni 高可用组件,支持 hypertable 时序分区与自动主备切换。定位为时序数据库 HA 服务,需 etcd/Consul 协调与多节点部署;K8s StatefulSet IoT 指标与 APM 数据存储。

快速启动

docker run -d --name timescaledb \
  -p 5432:5432 \
  -e POSTGRES_PASSWORD=changeme \
  docker.io/timescale/timescaledb-ha:pg16

推荐实践

docker run -d --name timescaledb \
  --restart unless-stopped \
  -p 5432:5432 \
  -v /data/timescale:/var/lib/postgresql/data \
  -e POSTGRES_PASSWORD=changeme \
  -e PATRONI_SCOPE=timescale-cluster \
  docker.io/timescale/timescaledb-ha:pg16-ts2.14.2

核心参数说明

  • -p 5432:5432 — PostgreSQL 协议端口
  • -e PATRONI_SCOPE — HA 集群标识
  • -v .../timescale:... — 时序数据持久化
  • HA — 多节点 + DCS 协调

Kubernetes

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: timescaledb
spec:
  serviceName: timescaledb
  replicas: 3
  selector:
    matchLabels:
      app: timescaledb
  template:
    metadata:
      labels:
        app: timescaledb
    spec:
      containers:
        - name: timescaledb
          image: docker.io/timescale/timescaledb-ha:pg16-ts2.14.2
          ports:
            - containerPort: 5432
          envFrom:
            - secretRef:
                name: timescaledb-env
          volumeMounts:
            - name: data
              mountPath: /var/lib/postgresql/data
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes: [ReadWriteOnce]
        resources:
          requests:
            storage: 200Gi
---
apiVersion: v1
kind: Service
metadata:
  name: timescaledb
spec:
  clusterIP: None
  selector:
    app: timescaledb
  ports:
    - port: 5432
      targetPort: 5432

配置 etcd Service;按保留策略压缩 hypertable。

Latest tags (20)

View all 3511 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/timescale/timescaledb-ha
:pg16.14-ts2.28.1-oss
linux/amd64linux/arm64
2026/06/24 03:291.2 GBsha256:a76ff015a8c8
docker.io/timescale/timescaledb-ha
:pg16-ts2.28-oss
linux/amd64linux/arm64
2026/06/24 03:291.2 GBsha256:a76ff015a8c8
docker.io/timescale/timescaledb-ha
:pg18.4-ts2.28.1-all
linux/amd64linux/arm64
2026/06/24 03:292.5 GBsha256:e930c7c9b7c1
docker.io/timescale/timescaledb-ha
:pg15.18-ts2.28.1-all-oss
linux/arm64linux/amd64
2026/06/24 03:29595.8 MBsha256:a19fc692a793
docker.io/timescale/timescaledb-ha
:pg17.10-ts2.28.1
linux/arm64linux/amd64
2026/06/24 03:291.3 GBsha256:1378771e2e62
docker.io/timescale/timescaledb-ha
:pg15.18-ts2.28.1-oss
linux/arm64linux/amd64
2026/06/24 03:29595.8 MBsha256:50a935b15324
docker.io/timescale/timescaledb-ha
:pg17.10-ts2.28.1-oss
linux/arm64linux/amd64
2026/06/24 03:291.1 GBsha256:6126667f2aef
docker.io/timescale/timescaledb-ha
:pg16.14-ts2.28.1-all-oss
linux/arm64linux/amd64
2026/06/24 03:291.5 GBsha256:c043b3f9129d
docker.io/timescale/timescaledb-ha
:pg16-oss
linux/amd64linux/arm64
2026/06/24 03:291.2 GBsha256:a76ff015a8c8
docker.io/timescale/timescaledb-ha
:pg16.14-ts2.28.1
linux/arm64linux/amd64
2026/06/24 03:291.4 GBsha256:df1184c6254d
docker.io/timescale/timescaledb-ha
:pg15.18-ts2.28.1
linux/amd64linux/arm64
2026/06/24 03:29777.6 MBsha256:a25a99068906
docker.io/timescale/timescaledb-ha
:pg18-ts2.28-all
linux/amd64linux/arm64
2026/06/24 03:292.5 GBsha256:e930c7c9b7c1
docker.io/timescale/timescaledb-ha
:pg15-ts2.28-all-oss
linux/arm64linux/amd64
2026/06/24 03:29595.8 MBsha256:a19fc692a793
docker.io/timescale/timescaledb-ha
:pg17-ts2.28
linux/arm64linux/amd64
2026/06/24 03:291.3 GBsha256:1378771e2e62
docker.io/timescale/timescaledb-ha
:pg15-ts2.28-oss
linux/arm64linux/amd64
2026/06/24 03:29595.8 MBsha256:50a935b15324
docker.io/timescale/timescaledb-ha
:pg17-ts2.28-oss
linux/arm64linux/amd64
2026/06/24 03:291.1 GBsha256:6126667f2aef
docker.io/timescale/timescaledb-ha
:pg16-ts2.28-all-oss
linux/arm64linux/amd64
2026/06/24 03:291.5 GBsha256:c043b3f9129d
docker.io/timescale/timescaledb-ha
:pg16-ts2.28
linux/arm64linux/amd64
2026/06/24 03:291.4 GBsha256:df1184c6254d
docker.io/timescale/timescaledb-ha
:pg16.14-oss-builder
linux/arm64linux/amd64
2026/06/24 03:292.0 GBsha256:1f9b55d2c512
docker.io/timescale/timescaledb-ha
:pg18-all
linux/amd64linux/arm64
2026/06/24 03:292.5 GBsha256:e930c7c9b7c1