使用 pycassa 进行压力测试
我一直在尝试为相当大的 cassandra 数据库编写一个压力测试器。起初我是从头开始做的,然后我发现 stress.py 这允许您对集群进行压力测试。然而,与所有基准测试一样,测试数据不能代表该数据库将看到的负载。因此,我决定对其进行修改,使其更符合我的使用模式。
我在这个项目的大部分时间里都使用 pycassa。然而,stress.py 直接使用较低级别的 thrift 接口,我觉得这相当麻烦。有没有使用 pycassa 对 cassandra 进行压力测试的项目?谢谢!
I've been trying to write a stress tester for a rather large cassandra database. At first I was doing it from scratch, and then I found stress.py which allows you to stress test your cluster. However, like all benchmarks, the test data is unrepresentative of the loads this database will be seeing. Thus I decided to modify it to be more realistic to my usage pattern.
I'm using pycassa for most of this project. However stress.py uses the lower-level thrift interface directly, which I find rather cumbersome. Are there any projects out there which stress test cassandra using pycassa? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道有任何现有的通用压力测试使用 pycassa;我也很想听听他们的情况(如果有的话)。
过去,我修改了stress.py以使用pycassa。我相信我将其设置为每个进程使用一个小型连接池,我对结果非常满意;修改Operation类和get_client是这里的主要工作。
在不知道您想做什么的情况下,很难提供更具体的细节,因此如果需要,请随时提出更详细的问题。
I'm not aware of any existing general-purpose stress tests that make use of pycassa; I'd also love to hear about them if there are any.
In the past, I've modified stress.py to make use of pycassa. I believe I set it up to use one small ConnectionPool per process and I was pretty happy with the result; modifying the Operation class and get_client was the main chunk of work here.
It's hard to give more specific details about this without knowing what you want to do, so feel free to ask more detailed questions if you need to.