Search code examples
cassandradatastax-enterprisedatastax-java-driver

Make few nodes in the datastax cluster slower than the others


I'm trying to do a performance testing on datastax's ChainableLoadBalancingPolicy and looking for a way to pause few nodes for a while so that latency of those nodes are considered which would make my life easier to compare the results with the current situation when driver doesn't have that implementation. But apparently stop is the only one that comes as a part of DSE service which may be not be as comparing apple with apples.

Is there some obvious way I can achieve what I'm trying to do?


Solution

  • There are a few techniques to do this:

    1. Emulate load on the system using something like cpuburn
    2. Emulate large GC pauses by issuing alternating kill -STOP [pid] and kill -CONT [pid] on the server process
    3. Emulate network latencies using traffic control