Search in sources :

Example 1 with K8sVolatileVolume

use of edu.iu.dsc.tws.rsched.schedulers.k8s.worker.K8sVolatileVolume in project twister2 by DSC-SPIDAL.

the class MPIWorkerStarter method startWorker.

/**
 * start the Worker class specified in conf files
 */
public static boolean startWorker(IWorkerController workerController, IPersistentVolume pv, String podName) {
    IWorker worker = JobUtils.initializeIWorker(job);
    K8sVolatileVolume volatileVolume = null;
    if (computeResource.getDiskGigaBytes() > 0) {
        volatileVolume = new K8sVolatileVolume(jobID, workerID);
    }
    MPIWorkerManager mpiWorkerManager = new MPIWorkerManager();
    return mpiWorkerManager.execute(config, job, workerController, pv, volatileVolume, worker);
}
Also used : MPIWorkerManager(edu.iu.dsc.tws.rsched.worker.MPIWorkerManager) IWorker(edu.iu.dsc.tws.api.resource.IWorker) K8sVolatileVolume(edu.iu.dsc.tws.rsched.schedulers.k8s.worker.K8sVolatileVolume)

Aggregations

IWorker (edu.iu.dsc.tws.api.resource.IWorker)1 K8sVolatileVolume (edu.iu.dsc.tws.rsched.schedulers.k8s.worker.K8sVolatileVolume)1 MPIWorkerManager (edu.iu.dsc.tws.rsched.worker.MPIWorkerManager)1