You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-7Lines changed: 39 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# MATLAB Parallel Server on Microsoft Azure
2
2
3
-
This repository helps you automate the process of deploying MATLAB® Parallel Server™ and MATLAB Job Scheduler using your Azure® account.
3
+
This repository helps you automate the process of deploying MATLAB® Parallel Server™ and MATLAB Job Scheduler using your Azure® account.
4
4
5
5
Use this repository to deploy a compute cluster using compute, storage, and network resources hosted by Azure. The cloud resources are created using Azure Resource Manager (ARM) templates. For information about the architecture of this solution, see [Learn About Cluster Architecture](#learn-about-cluster-architecture).
6
6
@@ -15,12 +15,21 @@ Before starting, you need the following:
15
15
* An Azure account. To configure your account to enable autoscaling (since R2022b), see [Configure Azure Account](#configure-azure-account).
16
16
17
17
# Costs
18
+
18
19
You are responsible for the cost of the Azure services you use when you create cloud resources using this repository. Resource settings, such as virtual machine (VM) type, affect the cost of deployment. For cost estimates, see the pricing pages for each Azure service you use. Prices are subject to change.
19
20
20
21
# Deployment Steps
21
22
22
-
To view instructions for deploying the MATLAB Parallel Server reference architecture, select a MATLAB release.
23
+
By default, the MATLAB Parallel Server reference architectures below launch prebuilt machine images, described in [Learn about Cluster Architecture](#learn-about-cluster-architecture).
24
+
Using a prebuilt machine image is the easiest way to deploy a MATLAB Parallel Server reference architecture.
25
+
Prebuilt images are provided for the five most recent MATLAB releases.
26
+
Alternatively, to build your own machine image,
27
+
see [Build and Deploy Your Own Machine Image](#build-and-deploy-your-own-machine-image).
28
+
You can also use this workflow to install an earlier MATLAB release.
29
+
30
+
## Deploy Prebuilt Machine Image
23
31
32
+
To view instructions for deploying the MATLAB Parallel Server reference architecture, select a MATLAB release.
The above instructions allow you to launch instances based on the latest prebuilt MathWorks® Azure Virtual Machine (VM) Images.
51
+
52
+
## Build and Deploy Your Own Machine Image
53
+
54
+
For details of the scripts which form the basis of the MathWorks Linux Azure VM Image build process,
55
+
see [Build Your Own Machine Image](./packer/v1).
56
+
You can use these scripts to build a custom Linux VM image for running MATLAB Parallel Server on Azure.
57
+
You can then deploy this custom image with the MathWorks infrastructure as code (IaC) templates.
58
+
You can customize the MATLAB release which is installed as part of this custom build.
59
+
This includes MATLAB releases supported by the prebuilt images, as well as earlier MATLAB releases.
60
+
For more details,
61
+
see [Customize MATLAB Parallel Server Release to Install](./packer/v1#customize-matlab-parallel-server-release-to-install).
62
+
Platform engineering teams can use these scripts to take advantage of optimizations MathWorks has developed
63
+
for running MathWorks products in the cloud.
64
+
For more details, see [What are the advantages of building images with MathWorks scripts?](#what-are-the-advantages-of-building-images-with-mathworks-scripts)
41
65
42
66
# Learn About Cluster Architecture
43
67
@@ -98,13 +122,13 @@ Microsoft Azure is a set of cloud services that allow you to build, deploy, and
98
122
99
123
### What skills or specializations do I need to use this reference architecture?
100
124
101
-
No programming or cloud experience required.
125
+
No programming or cloud experience required.
102
126
103
127
### How long does it take to deploy the reference architecture?
104
128
105
129
If you already have an Azure account set up and ready to use, you can start a MATLAB Parallel Server reference architecture cluster in less than 15 minutes. Startup time varies depending on the size of your cluster.
106
130
107
-
### How do I manage limits for Azure services?
131
+
### How do I manage limits for Azure services?
108
132
109
133
For information about setting quotas, see [Azure subscription and service limits](https://learn.microsoft.com/azure/azure-resource-manager/management/azure-subscription-service-limits).
110
134
@@ -116,19 +140,27 @@ Before enabling Spot Virtual Machines, consider these aspects:
116
140
117
141
* Pricing: Spot Virtual Machines offer discounts compared to on-demand virtual machines. The actual discount depends on the available unused capacity of the virtual machines within the availability zone (AZ). For more details, see the [Azure documentation](https://azure.microsoft.com/pricing/details/virtual-machines/linux/).
118
142
119
-
* Behavior of your cluster when Azure reclaims a Spot Virtual Machine: Spot Virtual Machines are used only for the worker nodes, whereas the head node always uses an on-demand virtual machine. This behavior protects your user job and task information from being lost when a virtual machine is reclaimed by Azure. Jobs in the queue are run when a new worker instance is available. For details on how jobs are run, refer to [How Parallel Computing Toolbox Runs a Job](https://www.mathworks.com/help/parallel-computing/how-parallel-computing-products-run-a-job.html). If a Spot VM for a worker is interrupted when it is running a task, the task is marked as failed. You can set the maximum number of times to rerun a failed task using the `MaximumRetries` property. For more details, see [Access task properties and behaviors](https://www.mathworks.com/help/parallel-computing/parallel.task.html).
143
+
* Behavior of your cluster when Azure reclaims a Spot Virtual Machine: Spot Virtual Machines are used only for the worker nodes, whereas the head node always uses an on-demand virtual machine. This behavior protects your user job and task information from being lost when a virtual machine is reclaimed by Azure. Jobs in the queue are run when a new worker instance is available. For details on how jobs are run, refer to [How Parallel Computing Toolbox Runs a Job](https://www.mathworks.com/help/parallel-computing/how-parallel-computing-products-run-a-job.html). If a Spot VM for a worker is interrupted when it is running a task, the task is marked as failed. You can set the maximum number of times to rerun a failed task using the `MaximumRetries` property. For more details, see [Access task properties and behaviors](https://www.mathworks.com/help/parallel-computing/parallel.task.html).
120
144
121
145
* The following VM sizes are not supported for Azure Spot Virtual Machines:
122
146
* B-series
123
147
* Promo versions of any size (such as the Dv2, NV, NC, and H promo sizes)
124
148
125
149
For more information about the limitations of using Spot Virtual Machines, see [Azure Spot Virtual Machines for Virtual Machine Scale Sets](https://learn.microsoft.com/azure/virtual-machine-scale-sets/use-spot).
126
150
151
+
### What are the advantages of building images with MathWorks scripts?
152
+
153
+
Images built with MathWorks scripts are optimized and tested for MathWorks workflows.
154
+
The images are deployed by MathWorks Azure Resource Manager (ARM) templates following Azure best practices.
155
+
The warmup scripts found in [startup](./packer/v1/startup) allow you to start MATLAB faster. The ARM template uses these scripts to automatically initialize MathWorks files on the instance. These scripts are automatically included in both the prebuilt images and the images that you build using the instructions in [Deployment Steps](#deployment-steps).
156
+
Without the optimization scripts, starting a large software application, such as MATLAB, for the first time can potentially take tens of minutes. Subsequent starts of the large software application will be faster.
157
+
127
158
# Technical Support
159
+
128
160
If you need help or have a request for additional features or capabilities, contact [MathWorks Technical Support](https://www.mathworks.com/support/contact_us.html).
0 commit comments