-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cassandra-stress to support multi DC testing #16
Comments
@tzach I sent a patch on the mailing list. Help needed with testing it. |
�@penberg What is the status of the patch. Is the patch merged in https://github.com/scylladb/scylla-tools-java? How can we use it? |
@asias It's not merged because nobody was able to test it. |
@penberg what's the patch? (mail subject) |
The patch subject is "[PATCH scylla-tools v1] cassandra-stress: Add new '-remote-dc' command line option". |
Asked pekka to rebase the patch to latest code, I would like to test it. |
cassandra-stress (c-s) is our go to tool for benchmark.
It will be useful if we can use it to benchmark Scylla/Cassandra cluster on failures, in particular DC failures.
c-s chose which DC to work in the client builder code.
Currently c-s is using the default, DCAwareRoundRobinPolicy() which creates a new datacenter aware round robin policy, with one, random DC.
There is also a DCAwareRoundRobinPolicy(String localDc, int usedHostsPerRemoteDc)[1][2] which provide the client fail over to other DC, c-s does not use it[2]
I suggest a new c-s options
-remote-dc n
to set the number of remote DC hosts to connect to.[1] http://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.html
[2] https://github.com/apache/cassandra/blob/b51f9495e5f1dc9573aa08139009569a1916f82f/tools/stress/src/org/apache/cassandra/stress/util/JavaDriverClient.java#L113
[3] https://github.com/datastax/java-driver/blob/2.1/driver-core/src/main/java/com/datastax/driver/core/policies/DCAwareRoundRobinPolicy.java
The text was updated successfully, but these errors were encountered: