The Compute Modules feature is in beta and may not be available on all enrollments.
This section assumes you have already created a compute module Docker container. If you have not, you can follow the guide on how to create a basic Python compute module.
The tag latest
is not supported for compute modules.
Now that you have your Docker image in Foundry, you are ready to run it as a compute module.
mycomputemodule
. Note that the name must be lowercase and cannot include spaces or special characters other than -
.Your compute module is now ready to be started.
Now that your compute module is running, you can validate that the module works by sending test queries.
Enter the function name for your compute module. This function name is passed along in the request to your compute module, so it may differ from one compute module to another. For the compute module you built in the previous section, the supported queries are divide
and multiply
.
Enter a value on which to execute the function specified above.
Select Run and you should see the result of your compute module. Note that the first query may take some time if you have scale down to zero enabled.
Compute Modules can serve multiple functions; the example above executed multiply
, but could also call the function divide
.