I want my 200 jobs to wait in a queue so that they occupy only 40 workers out of 100 workers in our cluster
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Data Analysis
el 30 de Abr. de 2015
Comentada: Data Analysis
el 30 de Abr. de 2015
We have a cluster with 100 workers in our lab, and I am allowed to use up to 40 workers. The problem is that I cannot submit more than 40 jobs at once, because those extra jobs will use the idle workers of my colleagues. How can I tell MATLAB job scheduler to limit my access to only 40 workers? I don’t think the solution is setting “NumWorkersRange” to [1 40].
0 comentarios
Respuesta aceptada
Edric Ellis
el 30 de Abr. de 2015
If you're using an MJS cluster, then NumWorkersRange on a single independent job is the way to do this. You'll need multiple createTask calls, a bit like this:
c = parcluster(...);
j = createJob(c, 'NumWorkersRange', [1 40]);
for idx = 1:N
createTask(j, @myFcn, numOutputArgs, {inputArgs, ...});
end
submit(j);
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Parallel Server en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!