Execution classes define the characteristics of how instances are executed, such as:
- cores
- memory
- maximum run time
In a nutshell, an execution class is the type of machine that is used to run remotely. Here is the default execution class that is widely available:
Class | Cores | Memory | Maximum run time | Premium |
---|---|---|---|---|
6c9500mb870s | 6 | 9500 MB | 14.5 minutes | ➖ |
If an execution class is not specified, this default (6c9500mb870s
) one is used.
Premium execution classes
Premium execution classes must be activated on your account. Please contact us for more information.
If you want to run for longer, and with more CPU and memory available, you can use premium execution classes. These are available upon request and are subject to additional charges.
These are the premium execution classes available:
Class | Cores | Memory | Maximum run time | Premium |
---|---|---|---|---|
8c16gb12h | 8 | 16 GB | 12 hours | ✅ |
16c60gb12h | 16 | 60 GB | 12 hours | ✅ |
You should expect your runtime to increase with this type of resource by 30-60 seconds compared with the default execution.
Using execution classes
There are two ways to specify an execution class:
As part of an instance’s configuration.
- When creating an instance:
- Nextmv CLI. Use the
-e, --execution-class
flag. - Cloud API. Use the
configuration.execution_class
field.
- Nextmv CLI. Use the
- When updating an instance:
- Nextmv CLI. Use the
-e, --execution-class
flag. - Cloud API. Use the
configuration.execution_class
field.
- Nextmv CLI. Use the
- When creating an instance:
As part of the run, when running remotely. Use one of the following interfaces.
- Nextmv CLI. Use the
-e, --execution-class
flag. Here is an example:
- Cloud API. Use the
configuration.execution_class
field. Make sure yourNEXTMV_API_KEY
is exported as an environment variable. The API uses Bearer Authentication. Here is an example.
New application run.
Create new application run.
- Python SDK. Use the
configuration
argument. Here is an example.