ClickHouse Keeper: 一个用 C++ 编写的 ZooKeeper 替代品

本文涉及的产品
阿里云百炼推荐规格 ADB PostgreSQL,4核16GB 100GB 1个月
云原生数据仓库AnalyticDB MySQL版,基础版 8ACU 100GB 1个月
简介: ClickHouse Keeper: 一个用 C++ 编写的 ZooKeeper 替代品介绍




ClickHouseClickHouseKeeperClickHouseZooKeeperClickHouse使

ClickHouseKeeper使ClickHouseKeeper使ClickHouseKeeperZooKeeper使ZooKeeper1/46


ClickHouseZooKeeper广使API

ClickHouseZooKeeperJavaC++使使ZooKeeperClickHouseKeeper

ClickHouseKeeperZooKeeper

  • ClickHouseKeeperC++JavaClickHouse

  • ZooKeeper1MB
  • ZXIDZooKeeper20亿
  • 使
  • ClickHouseKeeperZooKeeper-线quorum_readsClickHouseKeeper线
  • ClickHouseKeeper使

ClickHouseKeeper20212ClickHouseJepsen-6

ClickHouseKeeper20225ClickHouseCloud

ClickHouseKeeperKeeper


ClickHouse使

ClickHouseKeeper

  • Keepershared-nothingClickHouse
  • MergetreeKeeperblock-hash-sums
  • Keeperpartpartmutation
  • KeeperKeeperMap使使Keeper线
  • ClickHouse
  • KafkaConnectSink使
  • KeeperS3Queue
  • DatabaseKeeper
  • KeeperONCLUSTER
  • UDFKeeper
  • 访Keeper
  • KeeperClickHouseCloud


Keeper

ClickHouseCloudKeeperWikiStat3ClickHouseCloud30CPU120GBRAM使ClickHouseKeeper3Keeper3CPU2GBRAM

10074046亿ClickHouseClickHouse使107GB

0 rows inset. Elapsed:101.208 sec. Processed 4.64 billion rows,40.58 GB (45.86 million rows/s.,400.93 MB/s.)Peak memory usage:107.75 GiB.

Part

3ClickHouse240partpart1934100MiB46亿

┌─parts──┬─rows_avg──────┬─size_avg───┬─rows_total───┐
│ 240.00 │ 19.34 million │ 108.89 MiB │ 4.64 billion │
└────────┴───────────────┴────────────┴──────────────┘

s3ClusterpartClickHouseCloud3ClickHouse

┌─n─┬─parts─┬─rows_total───┐
│ 1 │ 86.00 │ 1.61 billion │
│ 2 │ 76.00 │ 1.52 billion │
│ 3 │ 78.00 │ 1.51 billion │
└───┴───────┴──────────────┘

part

ClickHouse1706part

┌─merges─┐
│   1706 │
└────────┘

Keeper

ClickHouseKeeperClickHousepartpartpartClickHouse使KeeperpartpartpartblobKeeper

partpart18,000Keeper12,000ClickHouseKeeper800

total_requests:      17705
multi_requests:      11642
watch_notifications: 822

ClickHouse

┌─n─┬─total_requests─┬─multi_requests─┬─watch_notifications─┐
│ 1 │           5741 │           3671 │                 278 │
│ 2 │           5593 │           3685 │                 269 │
│ 3 │           6371 │           4286 │                 275 │
└───┴────────────────┴────────────────┴─────────────────────┘

Keeper

70%Keeper

KeeperClickHouseKeeper

ClickHouse

使1033使SharedMergeTree

0 rows in set. Elapsed: 33.634 sec. Processed 4.64 billion rows, 40.58 GB (138.01 million rows/s., 1.21 GB/s.)
Peak memory usage: 57.09 GiB.

3Keeper

total_requests:      60925
multi_requests:      41767
watch_notifications: 3468

使3ClickHousepart~25使使~1partClickHouse使9

0 rows in set. Elapsed: 121.421 sec. Processed 4.64 billion rows, 40.58 GB (38.23 million rows/s., 334.19 MB/s.)
Peak memory usage: 12.02 GiB.

part2404

┌─parts─────────┬─rows_avg─────┬─size_avg─┬─rows_total───┐
│ 4.24 thousand │ 1.09 million │ 9.20 MiB │ 4.64 billion │
└───────────────┴──────────────┴──────────┴──────────────┘

part

┌─merges─┐
│   9094 │
└────────

Keeper147k17k

total_requests:      147540
multi_requests:      105951
watch_notifications: 7439

使~1partWikiStat24kpart

─parts──────────┬─rows_avg─────┬─size_avg─┬─rows_total────┐
│ 23.75 thousand │ 1.10 million │ 9.24 MiB │ 26.23 billion │
└────────────────┴──────────────┴──────────┴───────────────┘

┌─merges─┐
│  28959 │
└────────┘

680kKeeper

total_requests:      680996
multi_requests:      474093
watch_notifications: 32779


Keeper

`keeper-bench-suite`ClickHouseKeeper`keeper-bench-suite`N3ClickHouseKeeper

`keeper-bench`KeeperZooKeeperNClickHouseKeeper`KeeperBenchSuite`使Keeper

使AWSEC2Python

3EC2m6a.4xlargeKeeperDockercAdvisorRediscAdvisor3Keeper

`keeper-bench`使

cAdvisorKeeperPrometheus

ClickHouseCloudSQLGrafana便

ClickHouseKeeperZooKeeperPrometheusCPU使cAdvisorKeeperDocker使KeeperCPU


Keeper

使DockerClickHouseKeeperZooKeeper1CPU+1GBRAM3CPU+1GBRAM6CPU+6GBRAM

Keeper使`keeper-bench`ClickHouseKeeper3101005001000

Keeper使`keeper-bench`Keeper1~1000使

ClickHouse1/32/3


Prometheus

使cAdvisorPrometheus

  • 使container_memory_working_set_bytes
  • CPU使container_cpu_usage_seconds_total

使ClickHouseKeeperZooKeeperPrometheusKeeperPrometheusZooKeeperJVM使

Keeper


使`keeper-bench-suite`ClickHouseKeeperZooKeeper10ClickHouseCloud使SQL


  • 95
  • 99

使ClickHouseKeeper23.5ZooKeeper3.8OpenJDK11216


3ClickHouseKeeper使3CPU2GBRAM99

使

ClickHouseKeeperZooKeeper使3ClickHouse640ClickHouseKeeper使ZooKeeper46

ZooKeeper使1GiBJVMJVMFLAGS-Xmx1024m-Xms1024mJVMJava使~1GiB使Docker使JVM使JVMJVM使JVMClickHouseKeeper使

ZooKeeper使1GiBJVM使2GiBJVMZooKeeper使2GiBJVM1.56GiBClickHouseKeeperZooKeeper

CPU使

CPU使

ClickHouseKeeperZooKeeperClickHouseKeeper使CPU使


Keeper

ClickHouseCloudKeeper使ClickHouseCloudKeeperClickHouse使Keeper


-2-2part使KeeperKeeperpartpartblobKeeperznodepartpart使ClickHousepartznodesClickHouseKeeperKeeper


part

server-2partpart使Keeperpart-2partpart使Keeperpart

KeeperKeeperClickHousepartClickHouseKeeper线


线

ZooKeeperClickHouseKeeperZABRaftpart

ZABZooKeeper2008

Raft2021KeeperC++

线使ClickHouseKeeperznodesKeeper线

ZooKeeper使线KeeperNuRaft使线

线使CPUZooKeeperClickHouseKeeper99

ZooKeeperClickHouseKeeper使136CPU500128

线ZABRaftCPU


KeeperKeeperRaft

KeeperKeeperRaft

线Multi-groupRaftKeeper使RaftKeeper

RaftKeeper/ClickHouse

ClickHouseKeeperZooKeeperClickHouseCloud使ClickHouseKeeper使线


云数据库 ClickHouse 版是阿里云提供的全托管 ClickHouse服务,是国内唯一和 ClickHouse 原厂达成战略合作并一方提供企业版内核服务的云产品。 企业版较社区版 ClickHouse 增强支持实时update&delete,云原生存算分离及Serverless 能力,整体成本可降低50%以上,现已开启邀测,欢迎申请体验(链接:https://www.aliyun.com/product/apsaradb/clickhouse

产品介绍(https://www.aliyun.com/product/apsaradb/clickhouse

技术交流群:

image.png

ClickHouse官方公众号:

image.png

相关文章
|
存储 分布式计算 数据挖掘
clickhouse集群zookeeper平滑搬迁实践
clickhouse集群zookeeper平滑搬迁实践
849 0
clickhouse集群zookeeper平滑搬迁实践
|
存储 网络协议 Cloud Native
ClickHouse Keeper 源码解析
ClickHouse 社区在21.8版本中引入了 ClickHouse Keeper。ClickHouse Keeper 是完全兼容 Zookeeper 协议的分布式协调服务。本文对开源版本 ClickHouse v21.8.10.19-lts 源码进行了解析。
ClickHouse Keeper 源码解析
|
1月前
|
存储 关系型数据库 MySQL
一个项目用5款数据库?MySQL、PostgreSQL、ClickHouse、MongoDB区别,适用场景
一个项目用5款数据库?MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景比较
|
1月前
|
存储 分布式计算 数据库
阿里云国际版设置数据库云分析工作负载的 ClickHouse 版
阿里云国际版设置数据库云分析工作负载的 ClickHouse 版
|
2月前
|
存储 SQL 缓存
数据库测试|Elasticsearch和ClickHouse的对决
由于目前市场上主流的数据库有许多,这次我们选择其中一个比较典型的Elasticsearch来和ClickHouse做一次实战测试,让大家更直观地看到真实的比对数据,从而对这两个数据库有更深入的了解,也就能理解为什么我们会选择ClickHouse。
数据库测试|Elasticsearch和ClickHouse的对决
|
1月前
|
存储 关系型数据库 MySQL
四种数据库对比MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景
四种数据库对比 MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景
|
5月前
|
DataWorks API 调度
DataWorks产品使用合集之在调度配置配置了节点的上游节点输出,没办法自动生成这个flow的依赖,该怎么操作
DataWorks作为一站式的数据开发与治理平台,提供了从数据采集、清洗、开发、调度、服务化、质量监控到安全管理的全套解决方案,帮助企业构建高效、规范、安全的大数据处理体系。以下是对DataWorks产品使用合集的概述,涵盖数据处理的各个环节。
|
5月前
|
DataWorks 安全 关系型数据库
DataWorks产品使用合集之建了 polar 与clickhouse的数据源。为什么数据库这里总是mysql呢
DataWorks作为一站式的数据开发与治理平台,提供了从数据采集、清洗、开发、调度、服务化、质量监控到安全管理的全套解决方案,帮助企业构建高效、规范、安全的大数据处理体系。以下是对DataWorks产品使用合集的概述,涵盖数据处理的各个环节。
|
4月前
|
存储 大数据 关系型数据库
从 ClickHouse 到阿里云数据库 SelectDB 内核 Apache Doris:快成物流的数智化货运应用实践
目前已经部署在 2 套生产集群,存储数据总量达百亿规模,覆盖实时数仓、BI 多维分析、用户画像、货运轨迹信息系统等业务场景。

热门文章

最新文章