9.1.1 初始测试

优质
小牛编辑
130浏览
2023-12-01

同步模式的读写测试,使用Simple Producer & Simple Consumer

备注:

  • 1台客户机,8台Talos机器,8台Hdfs,8台HBase,Talos与Hdfs/HBase混布,机型均为2U;
  • 读写同步,每个partition对应一个线程;
  • ThroughPut指的是client出口/入口带宽;
  • QPS是集群整体处理能力,非单台serverQPS
场景一:只写,batch=1
Partition 数量Batch 大小单条消息大小(Bytes)QPSLatency(ms)ThroughPut(MB/s)
111005311.880.05
8110040401.980.40
16110078432.040.78
321100148832.151.49
641100270042.372.70
1281100435372.944.35
场景二:读写同时,batch=1
Partition数量Batch大小消息大小(Bytes)QPS (读 / 写)Latency(ms)(读/写)ThroughPut(MB/s)(读/写)
11100599/4951.67/1.880.06/0.05
811004484/39601.78/2.020.45/0.40
1611008602/75821.86/2.110.86/0.76
32110016000/140352.00/2.281.60/1.40
64110025910/230212.47/2.782.59/2.30
128110025498/241965.02/5.292.55/2.42
场景三:只写,batch=10
Partition 数量Batch 大小单条消息大小(Bytes)QPSLatency(ms)ThroughPut(MB/s)
1101005181.930.52
81010038832.063.88
161010075472.127.55
3210100144142.2214.41
6410100263372.4326.34
12810100411573.1141.16
场景四:读写同时,batch=10
Partition数量Batch大小消息大小(Bytes)QPS (读 / 写)Latency(ms)(读/写)ThroughPut(MB/s)(读/写)
110100581/5071.72/1.970.58/0.51
8101004419/37911.81/2.114.42/3.80
16101008421/73731.90/2.178.42/3.37
321010015686/135592.04/2.3615.69/13.45
641010024806/219932.58/2.9124.81/22.00
1281010024288/230215.27/5.5624.29/23.02
场景五:只写,batch=100
Partition 数量Batch 大小单条消息大小(Bytes)QPSLatency(ms)ThroughPut(MB/s)
11001004692.134.69
810010034932.2934.93
1610010067512.3767.51
32100100128002.50128.00
64100100231882.76231.88
128100100360563.55360.56
场景六:读写同时,batch=100
Partition数量Batch大小消息大小(Bytes)QPS (读 / 写)Latency(ms)(读/写)ThroughPut(MB/s)(读/写)
1100100546/4581.83/2.185.46/4.58
81001004102/34331.95/2.3341.01/34.33
161001007804/65302.05/2.4578.04/65.30
3210010014545/119852.20/2.67145.45/119.85
6410010022377/192192.86/3.33223.77/192.19
12810010022416/205455.81/6.23224.16/205.45
场景七:只写,batch=1000
Partition 数量Batch 大小单条消息大小(Bytes)QPSLatency(ms)ThroughPut(MB/s)
110001002523.9625.2
8100010018144.41181.4
16100010033474.78334.7
32100010056835.63568.3
64100010074678.57746.7
1281000100836615.30836.6
场景八:读写同时,batch=1000
Partition数量Batch大小消息大小(Bytes)QPS (读 / 写)Latency(ms)(读/写)ThroughPut(MB/s)(读/写)
11000100310/2463.22/4.0631/25
810001002110/17093.79/4.68211/170
1610001003703/30074.32/5.32370/300
3210001005152/42556.21/7.52515/425
6410001005526/476511.58/13.43552/476
12810001005553/499623.05/25.62555/500

异步模式的读写测试,使用High Level API,单Producer & 单Consumer

备注:使用高阶API的测试在写的速度上性能比同步模式更好一些,读的性能不会比写差