Postgresql Scale
约 1 分钟阅读
- scale up
- 堆硬件
- scale out replicas
- 读写分离
- pub/sub
- scale out sharding
- 分片 - 多节点
- 应用分片 - 逻辑映射
- 可控性高、特殊场景
- 服务分片 - cdb、citus
- 使用简单、要求使用 patten 符合
PostgreSQL 并不是 OLAP 数据库,能力有上限,当发现有更多的时间和资源投入 数据仓库 时,可以考虑选择一个真正的数仓数据库。
- backup
- pgbackrestGitHubpgbackrest/pgbackrest
- MIT, perl & C
- by Crunchy Data
- wal-g笔记WAL-Gwal-g/wal-g 是什么? · Apache 2.0, lzo 部分 GPL 3.0+ · PostgreSQL 备份、恢复工具 · WAL-E 后继 - Golang 重写 Python - 性能 x4 · 支持 PostgreSQL, MySQL/MariaDB, Mongo, FoundationDB, Redis, Greenplum打开:/notes/db/relational/postgresql/wal-g
- by Citus Data, Apache-2.0, Go
- Barman
- 2ndQuadrant, GPL v 3.0, python
- basebackup & rsync
- pg_probackup
- by Postgres Professional, PostgreSQL License, C
- BART
- pgbackrestGitHubpgbackrest/pgbackrest
- Advanced PostgreSQL backup & recovery methods
Story
- Gitlab 因为 License 问题放弃 Citus Sharding GitLab with CitusDB
- Gitlab PostgreSQL Partitioning with FDW
- PostgreSQL 11 sharding with foreign data wrappers and partitioning
- 问题
- 需要为 foreign server 连接信息
- 不好维护 schema
- 只支持本地 foreign key
- 可能不会 push down 问题
- 性能降低
- 执行和计划时间增加
- 每个分片都需要 HA 集群
- 没有 parallel scan
- 更新性能问题
- 没有全局事务
- 问题
- PostgreSQL 11 sharding with foreign data wrappers and partitioning
Logical Replication
- 不会复制 schema
关联信息
反向链接、本文链接的其他页面和外部资料。
站内链接
- WAL-G笔记 · wal-g
wal-g/wal-g 是什么? · Apache 2.0, lzo 部分 GPL 3.0+ · PostgreSQL 备份、恢复工具 · WAL-E 后继 - Golang 重写 Python - 性能 x4 · 支持 PostgreSQL, MySQL/MariaDB, Mongo, FoundationDB, Redis, Greenplum
References
GitHub1 条
- pgbackrest/pgbackrestgithub.com/pgbackrest/pgbackrest
其他外链3 条
- about.gitlab.com/handbook/engineering/development/enablement/data_stores/database/doc/citus.htmlabout.gitlab.com/handbook/engineering/development/enablement/data_stores/database/doc/citus.html
- about.gitlab.com/handbook/engineering/development/enablement/data_stores/database/doc/fdw-sharding.htmlabout.gitlab.com/handbook/engineering/development/enablement/data_stores/database/doc/fdw-sharding.html
- www.postgresql.eu/events/pgconfeu2018/sessions/session/2098/slides/123/Advanced backup methods.pdfwww.postgresql.eu/events/pgconfeu2018/sessions/session/2098/slides/123/Advanced%20backup%20methods.pdf