如何在Cassandra中创建慢度? [英] How to Create slowness in Cassandra?

查看:120
本文介绍了如何在Cassandra中创建慢度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Cassandra中创建慢度来测试我的应用程序。是否有任何具体的方法来诱发Cassandra的速度变慢。在RDBMS中,我们使用锁定来等待其他操作,直到释放锁定为止。由于Cassandra没有锁定,还有其他方法可以创建死锁,运行缓慢等。

I want to create slowness in Cassandra to test my application. Is there any specific ways to induce slowness in Cassandra. In RDBMS we use locking, to wait for other operation until the lock is released. As Cassandra doesn't have locking, is there any other way to create deadlock, slowness etc.

推荐答案

您可以查看我们的项目在这里simulacron。 https://github.com/datastax/simulacron

You could check out our project here simulacron. https://github.com/datastax/simulacron

这是C * / DSE模拟器,专门用于测试竞争条件和错误条件之类的东西。您必须提前准备好所有相关查询,但这将使您引入等待时间或错误回复。您还可以在本地计算机上模拟大型群集。

This is a C*/DSE simulator, that was written specifically to test things like race conditions, and error conditions. You would have to prime all your relevant queries ahead of time, but it would allow you introduce a wait time, or errors to your responses. You can also simulate a large cluster on your local machine.

还有一个类似的名为scassandra的工具,它可以完成很多工作。
http://www.scassandra.org/

There is also a similar tool called scassandra, which does much of the same thing. http://www.scassandra.org/

这篇关于如何在Cassandra中创建慢度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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