MATLAB: Is it possible to run two different versions of MDCS+MJS on the same machine at the same time

createserviceMATLAB Parallel Servermdcsmjsmultiple

I would like to run two different versions of MDCS on the same machine, at the same time. I have a license for MDCS R2009b and R2010b. I am able to start one, but when I try to start the other I get the error:
wrapper | CreateService failed – The specified service already exists. (0x431)
Script mdce unable to complete successfully – exiting
Is it possible to run two different versions of MDCS, on the same machine, at the same time? If not, how can I serve R2009b and R2010b clients on the same machine?

Best Answer

You cannot run two MJS services of different versions on the same machine.
From R2016a onwards we support the newest installed version of MDCS running a service which is aware of older installed versions of MDCS and can dynamically start the relevant version needed when jobs are submitted to the MATLAB Job Scheduler. This is noted as backwards compatibility in the release notes:
For older releases it is possible to have a third party scheduler serve multiple installations of MDCS. The integration of MATLAB with the third party scheduler will ensure that the version of MATLAB started on the cluster will be the same version as that used to submit the job.