CitusDB中国
  • 首页
  • Citus官网
  • 青云PolonDB
  • [CitusDB中国]说明
  • 博客分享
    • Citus入门
    • Citus分享
    • PostgreSQL分享
    • 其他技术分享
  • Citus源码原理
    • 分布式事务处理
    • 分布式优化器
    • 分布式死锁检测
    • Citus其他源码原理
    • PostgreSQL源码原理
  • 论坛
    • Citus性能问题
    • Citus使用问题
    • Citus其他讨论
    • PostgreSQL
    • 其他讨论
  • img

    分布式PostgreSQL数据库CitusDB

    CitusDB采用PostgreSQL的插件形式(not a fork),即享受PostgreSQL的强大支持,又同时拥有分布式数据库能力

    欢迎您的加入

专注于高性能HTAP分布式数据库

打造Citus国内全信息平台

you can find all information about citus

分布式数据库产品介绍

PG-XL,Citus,GreenPlum如何选择

Citus性能

Citus性能数据

Citus介绍

CitusDB简介

Use Cases

多租户和实时分析

近期博客

欢迎大家积极参与Citus在中国的使用推广和知识传播

1 月 3,2024 发表评论

pgpool 连接池使用文档

简述

pgpool 连接池采用进程模型,每个业务的连接,都会连接到pgpool的其中一个进程。 ...Read more...

10 月 13,2020 发表评论

参与

最近在做大数据和容器的工作,晚些时间再回归到citus。大家可以注册帐号进行更新。

6 月 9,2020 发表评论

9.3 版本主要升级内容

协调器节点向worker连接时,若是瞬间业务量比较大,会出现达到最大连接数的错误,不太友好。

9.3 版本修复了这个问题,新增如下参数进行控制

citus.max_shared_pool_size(int)
允许连接到每一个worker节点的连接数量,默认 0

0:自动设置。即不会出现超过最大连接数错误的。
-1: 禁用该功能
其他:设置为该值

自动设置时,会将协调器节点的max_connections作为连接数的参考指标,因此协调器与worker的内存和最大连接数不一致的时候,自动设置的功能便不适合。

4 月 7,2020 发表评论

强制删除Citus节点

在某些情况下,比如worker节点宕机等情况发生时,允许丢失部分数据,以使服务可用时可能会用到。

  • 删除节点报错
test=# select master_remove_node('localhost', '1602');
ERROR:  you cannot remove the primary node of a node group which has shard placements
  • 查询节点的groupid
test=# select * from pg_dist_node;
 nodeid | groupid | nodename  | nodeport | noderack | hasmetadata | isactive | noderole | nodecluster | metadatasynced | shouldhaveshards 
--------+---------+-----------+----------+----------+-------------+----------+----------+-------------+----------------+------------------
      1 |       1 | localhost |     1601 | default  | f           | t        | primary  | default     | f              | t
      2 |       2 | localhost |     1602 | default  | f           | t        | primary  | default     | f              | t
(2 rows)

  • 删除关联信息
test=# delete from pg_dist_placement where groupid = 2;
-- 这个地方在删除前,也可以把pg_dist_placement备份一下
-- pg_dist_shard 最好也删除一下,要不全表扫描的时候也会报错
  • 删除节点
test=# select master_remove_node('localhost', '1602');
 master_remove_node 
--------------------

(1 row)

搜索博客

近期帖子

  • citus 回归测试 make check卡住
  • citus支持函数或存储过程吗
  • Citus支持aws aurora Postgresql吗?

近期回复

  • Citus支持aws aurora Postgresql吗?
  • Citus支持aws aurora Postgresql吗?
  • 单表1亿数据量 10 个字段 用3个work 每个work 默认32个分片。。。查询效率如何

近期评论

  • liuhaifeng 发表在《Citus多租户》
  • levi 发表在《Citus查询处理》
  • levi 发表在《Citus查询处理》