private String getCommand(String operation) {
    return String.format("tc qdisc %s dev %s root netem delay %sms %sms", operation, network, delay,
      delay / 2);
  }
Adds latency to communication on a random region server
@param delay    the latency wil be delay +/-50% in milliseconds
@param duration the time this issue persists in milliseconds
@param timeout  the timeout for executing required commands on the region server in
                milliseconds
@param network  network interface the regionserver uses for communication
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/DelayPacketsCommandAction.java