Main Content

Manage Azure Resources for MATLAB Production Server (BYOL)

After you deploy the MATLAB® Production Server™ bring your own license (BYOL) environment on Azure®, use the Azure portal to manage resources that you provision for in the deployment.

Change the Number of Virtual Machines

Each MATLAB Production Server instance runs on a virtual machine (VM) and each instance can run multiple MATLAB Production Server workers. If you have a standard 24 worker MATLAB Production Server license, and you use 1 worker per VM, you can provision a maximum of 24 VMs. Using 1 vCPU per worker is recommended. For example, if you select the Standard_D4s_v3 VM (4 vCPUs) as the Server VM Size, you need 6 VMs to fully utilize the workers in your license. You can change the number of VMs after the initial deployment.

  1. Log in to the Azure portal and select the resource group associated with the deployment.

  2. Select the VM scale set resource (vmss<uniqueID>).

  3. Select Scaling from the left pane to change the number of VMs in the VM scale set.

In the Azure Resource Manager (ARM) template, the overprovision property is set to true by default. This means that Azure provisions more virtual machines than necessary initially to buffer against any machines that fail. If all VMs are healthy, Azure scales down to the specified the number of VMs.

Change SSL Certificate to Application Gateway

When you deploy MATLAB Production Server, you get an HTTPS endpoint to the Azure application gateway. Use this endpoint to connect to the server instances and the dashboard. To change the SSL certificate to the application gateway, use the Azure portal to update the existing listener.

  1. Log in to the Azure portal and select the resource group associated with the deployment.

  2. Select the application gateway resource with the name vmss<uniqueID>-agw.

  3. Select Listeners from the left pane and click the listener named mainentrypoint.

  4. The interface gives you an option to create a new certificate or select an existing certificate.

Upload MATLAB Applications

The Azure file share lets you upload and deploy multiple applications to the server.

  1. Log in to the Azure portal and select the resource group associated with the deployment.

  2. Select the storage account resource within the resource group. This resource usually has the name serverlog<uniqueID>.

  3. In the pane that opens, select File Share > deployable-archives > auto_deploy.

  4. Select Upload to select the applications to upload, then click Upload.

View Logs

Application Insights lets you store and view logs related to the deployment.

  1. Log in to the Azure portal and select the resource group associated with the deployment.

  2. Select the resource logs-apmservice.

  3. Select Logs from the left pane of the resource.

  4. Create a new query and click Run.

To view logs generated by all the server instances, you can use the following query.

traces
| where customDimensions.source == "prodServerInstance"

To view the last 200 logs generated by all server instances, you can use the following query.

traces
| where customDimensions.source == "prodServerInstance"
| limit 200

To view only the error logs generated by all server instances, you can use the following query. For more information on log severity, see log-severity.

traces
| where customDimensions.source == "prodServerInstance"
| where parse_json(message).severity == "error"  

To view logs generated by all the server instances within a certain time duration, you can use the following query.

traces
| where customDimensions.source == "prodServerInstance"
| where timestamp >= todatetime('2020-02-11T17:21:45.188659Z') and timestamp <= todatetime('2020-02-11T19:22:46.881331Z')

Delete Resource Group

A resource group contains all related resources for an Azure solution. You can remove the resource group and all associated cluster resources when you are no longer need them. You cannot undo this.

Note

Your license file is tied to your MAC address. If you delete your resource group to delete your cluster, you will need to get a new license file. You can change your MAC address a maximum of 4 times per year.

  1. Log in to the Azure portal and select the resource group associated with the deployment.

  2. Click Delete resource group to delete all resources deployed in the group.

  3. Enter the name of the resource group to confirm the deletion.

Related Topics