
postgresql shared citus
数据库人生
专注于数据库
PostgreSQL;Oracle 11G OCA、OCP;OceanBase V2 OBCA、OBCP
展开
-
citus 之一 make 安装
shared_preload_libraries 添加 citus。原创 2024-04-12 16:34:23 · 424 阅读 · 0 评论 -
citus 之八 pgbench 压测
$ /usr/pgsql-11/bin/pgbench -i -s 50 citusdb$ psql citusdbcitusdb=# \d+ List of relations Schema | Name | Type | Owner | Size | Description --------+--------------------+-------+----------+---------+--原创 2021-03-08 17:19:21 · 458 阅读 · 0 评论 -
citus 的一些初始化参数
citusdb: 9.2alter system set citus.replication_model = 'streaming';alter system set citus.shard_count = 128;alter system set citus.shard_replication_factor = 1;原创 2020-11-16 14:40:43 · 480 阅读 · 0 评论 -
citus.task_assignment_policy
os: centos 7.4db: postgresql 11.7citus: 9.2-2版本# cat /etc/centos-releaseCentOS Linux release 7.4.1708 (Core) # # # su - postgresLast login: Wed Jan 15 18:34:12 CST 2020 on pts/0$$$ psql -c...原创 2020-04-01 08:39:15 · 306 阅读 · 0 评论 -
citus 之七 citus.enable_repartition_joins、citus.task_executor_type
os: ubuntu 16.04db: postgresql 9.6.8citus: 8.0citus 版本root@coor1:~# dpkg -l |grep -i citusii postgresql-9.6-citus 8.0.0.PGDG-1.pgdg16.04+1 amd64 shardin...原创 2019-03-25 16:25:49 · 743 阅读 · 0 评论 -
citus 之六 多表join
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0ip规划如下:192.168.0.92 pgsql1 --coordinator 节点192.168.0.90 pgsql2 --worker 节点192.168.0.88 pgsql3 --worker 节点distributed table:分片表,...原创 2018-11-14 16:21:42 · 1296 阅读 · 0 评论 -
citus 之五 remove node + pg_dump
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0ip规划如下:192.168.0.92 pgsql1 --coordinator 节点192.168.0.90 pgsql2 --worker 节点192.168.0.88 pgsql3 --worker 节点192.168.0.86 pgsql4...原创 2018-11-13 15:43:18 · 1273 阅读 · 1 评论 -
citus 之四 add node + pg_dump rebalance
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0ip规划如下:192.168.0.92 pgsql1 --coordinator 节点192.168.0.90 pgsql2 --worker 节点192.168.0.88 pgsql3 --worker 节点现添加一个节点192.168.0.8...原创 2018-11-13 14:51:42 · 991 阅读 · 0 评论 -
citus 之三 reference table
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0安装结束,下一篇blog介绍下如何创建表。citus 有两种表:distributed table:分片表,rows会分布在 worker节点中。主要用户事实表。reference table:广播表,每个 worker 节点都保存一模一样的数据。主要用...原创 2018-11-12 16:04:24 · 1678 阅读 · 0 评论 -
citus 之二 distributed table
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0ip规划如下:192.168.0.92 pgsql1 --master 节点192.168.0.90 pgsql2 --worker 节点192.168.0.88 pgsql3 --worker 节点citus 有两种表:distributed...原创 2018-11-12 15:40:40 · 2539 阅读 · 0 评论 -
citus 之一 setup
os: ubuntu 16.04postgresql: 9.6.8citus: postgresql-9.6-citus 8.0.0citus 是 postgresql 一种分库分表解决方案。是作为 extension使用的。数据库的实例分为两类:master 节点: 存储数据库分表的元数据,不存储实际的数据。worker 节点: 真实存储数据,是shard节点。用户只连接 mast...原创 2018-11-12 15:02:56 · 1124 阅读 · 0 评论