如何通过使用DataStax Java驱动程序提高Cassandra中的每秒事务数(TPS) [英] How to Increase Transaction per second(TPS) in cassandra by using DataStax java Driver

查看:129
本文介绍了如何通过使用DataStax Java驱动程序提高Cassandra中的每秒事务数(TPS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置:


  • 2节点Cassandra 2.0.7.31集群

  • replicas = 1

  • DataStax Java驱动程序2.0

问题

我正在使用Datastax Java驱动程序进行负载平衡。

我并通过Jmeter生成50000+线程负载

但获得了非常低的TPS。 大约1700 tps

我没有更改任何与性能相关的参数在cassandra.yaml
中,任何人都可以建议我使用哪个参数来获得满意的TPS。我向大多数族群的Cassandra运送了10000吨以上的汽油。

I am using Datastax java driver for load balancing.
I and generating 50000+ thread load by Jmeter
but getting very low TPS. near about 1700 tps
I have not changed any performance related parameter In cassandra.yaml
can any one suggest which parameter should I use to get satisfactory TPS. I herd Most of the Folks are getting 10000+ tps with Cassandra.

提前感谢

推荐答案

按TPS来表示每秒轻量级事务或仅每秒操作数。

By TPS you mean Ligthweight Transaction Per Second or just Operation per second .

如果是每秒操作数。

弄清楚什么是网络带宽
磁盘速度
机器上的内核数

Figure out whats your Network bandwidth Speed of your Disk Number of cores on your machine

运行查询并在运行时找出瓶颈,建议找出瓶颈的是
*网络:dstat 2

run queries and at run time figure out what is the bottleneck , commmands to figure out bottleneck are * network: dstat 2


  • cpu +磁盘:iostat -c -xc 3

  • cpu内核:mpstat -P ALL 1

  • 内存:free -m

  • gc:jstat -gc pid 2

  • cpu + disk: iostat -c -xc 3
  • cpu cores: mpstat -P ALL 1
  • memeory : free -m
  • gc : jstat -gc pid 2

请记住,这个瓶颈之一可能是服务器上的瓶颈您的客户端。

do remember either of this bottleneck can be their at server or your client side .

这篇关于如何通过使用DataStax Java驱动程序提高Cassandra中的每秒事务数(TPS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆