如果单纯看实时数据插入的速度,并不能体现citus的价值,还要看聚合查询的性能。下面将集群的查询性能和单机做个简单的对比。
仍使用之前插入测试的环境
<a href="http://blog.chinaunix.net/uid-20726500-id-5761214.html">分布式实时分析数据库citus数据插入性能优化</a>
<a href="http://blog.chinaunix.net/uid-20726500-id-5761937.html">分布式实时分析数据库citus数据插入性能优化之二</a>
CentOS release 6.5 x64物理机(16C/128G/300GB SSD)
CPU: 2*8core 16核32线程, Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz
PostgreSQL 9.6.2
citus 6.1.0
sysbench-1.0.3
master
192.168.0.177
worker(8个)
192.168.0.181~192.168.0.188
软件的安装都比较简单,参考官方文档即可,这里略过。