Run MATLAB Parallel Server and MATLAB Production Server on Azure
Running MATLAB® Production Server™ and MATLAB Parallel Server™ on Azure® lets you deploy MATLAB functions that use parallel language commands to MATLAB Production Server on the cloud. To run MATLAB Production Server and MATLAB Parallel Server on Azure, you can deploy them using reference architectures. The deployments must use the Network License Manager for MATLAB (License Manager) to manage license files.
In the following instructions, you deploy MATLAB Production Server and the License Manager first, followed by MATLAB Parallel Server. You can choose a different sequence for your deployments. The sequence in which you deploy the products does not matter, as long as you deploy MATLAB Production Server, MATLAB Parallel Server, and the License Manager in the same virtual network.
Deploy MATLAB Production Server
Launch the MATLAB Production Server deployment template from GitHub®. For details, see Launch Template. For information on providing values for the parameters in the template, see Configure Cloud Services (GitHub). If you use a value for the Subnet1 parameter that is different than the default, record the value. You will need it later when you deploy MATLAB Parallel Server.
Deploy MATLAB Parallel Server
Launch the MATLAB Parallel Server deployment template from GitHub. For details, see Launch Template. Select a release, then choose the Use Existing Virtual Network template to deploy MATLAB Parallel Server in the same virtual network as MATLAB Production Server. For information on providing values for the parameters in the template, see Configure Cloud Resources (GitHub).
The values for the following parameters depend on the parameters in the MATLAB Production Server deployment:
Resource Group — Enter the name of the resource group in which MATLAB Production Server and the License Manager are deployed.
Virtual Network Resource ID — Enter the resource ID of the existing virtual network in which MATLAB Production Server and the License Manager are deployed. The default name for the virtual network in which MATLAB Production Server and the License Manager are deployed is
Subnet — Enter the name of Subnet1 from the MATLAB Production Server deployment.
License Server — Enter the port number and private IP address of the license server in the format
port@hostname. The default port number is 27000. The hostname for the license server is the private IP address of the
netlm-server-nicresource in your resource group.
Upload License File
After you deploy MATLAB Production Server, MATLAB Parallel Server, and License Manager, log in to the License Manager dashboard to upload the license file. For information on accessing the License Manager dashboard, see Upload License File.
Use a text editor to combine the MATLAB Production Server and MATLAB Parallel Server license files and upload them through the License Manager dashboard. If you require assistance, contact MathWorks Technical Support.
Connect to Cluster from MATLAB
After you upload the license file, you can connect to your cluster on Azure from the MATLAB desktop. For more information, see Connect to Your Cluster from MATLAB (GitHub). After setting the cloud cluster as default, the next time you run a parallel
language command such as
batch, MATLAB connects to the cluster.
Package MATLAB Application into Deployable Archive
You can package MATLAB functions that use parallel language commands into deployable archives (CTF files) and deploy them to MATLAB Production Server. For information on creating deployable archives, see Create Deployable Archive for MATLAB Production Server. For information on deploying the archives to MATLAB Production Server, see Upload MATLAB Application.