package com.breakersoft.plow.dispatcher;

import java.util.concurrent.atomic.AtomicBoolean;

public class DispatchConfig {

    /*
     * Maximum number of processes to start on a single
     * dispatching pass for a given node.
     */
    public static int MAX_PROCS_PER_JOB = 16;

    /*
     * Maximum number of cores to dispatch from a node per pass.
     * Can actually go over the max, but if you do then dispatching
     * switches to the next job.
     */
    public static int MAX_CORES_PER_JOB = 16;

    /*
     * The minimum amount of idle ram required for a node to be considered
     * dispatchable.
     */
    public static int MIN_RAM_FOR_DISPATCH = 512;

    /*
     * Set to true once dispatching should start to happen.
     */
    public static AtomicBoolean IS_ENABLED = new AtomicBoolean(true);

}

package com.breakersoft.plow.dispatcher;

import java.util.concurrent.atomic.AtomicBoolean;

public class DispatchConfig {

    /*
     * Maximum number of processes to start on a single
     * dispatching pass for a given node.
     */
    public static int MAX_PROCS_PER_JOB = 4;

    /*
     * Maximum number of cores to dispatch from a node per pass.
     * Can actually go over the max, but if you do then dispatching
     * switches to the next job.
     */
    public static int MAX_CORES_PER_JOB = 8;

    /*
     * The minimum amount of idle ram required for a node to be considered
     * dispatchable.
     */
    public static int MIN_RAM_FOR_DISPATCH = 512;

    /*
     * Set to true once dispatching should start to happen.
     */
    public static AtomicBoolean IS_ENABLED = new AtomicBoolean(true);

}

Set the max cores/max procs per job to a reasonable value.
Set the max cores/max procs per job to a reasonable value.
