@Override
  protected void localPerform() throws IOException {
    getLogger().info("Starting to execute AddCPULoadAction");
    ServerName server = PolicyBasedChaosMonkey.selectRandomItem(getCurrentServers());
    String hostname = server.getHostname();

    try {
      clusterManager.execSudo(hostname, timeout, getCommand());
    } catch (IOException ex) {
      // This will always happen. We use timeout to kill a continuously running process
      // after the duration expires
    }
    getLogger().info("Finished to execute AddCPULoadAction");
  }
Add high load to cpu
@param duration  Duration that this thread should generate the load for in milliseconds
@param processes The number of parallel processes, should be equal to cpu threads for max load
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/AddCPULoadAction.java