R/webservice-aci.R
aci_webservice_deployment_config.Rd
Deploy a web service to Azure Container Instances for testing or debugging. Use ACI for low-scale CPU-based workloads that require less than 48 GB of RAM.
Deploy to ACI if one of the following conditions is true:
You need to quickly deploy and validate your model. You do not need to create ACI containers ahead of time. They are created as part of the deployment process.
You are testing a model that is under development.
aci_webservice_deployment_config( cpu_cores = NULL, memory_gb = NULL, tags = NULL, properties = NULL, description = NULL, location = NULL, auth_enabled = NULL, ssl_enabled = NULL, enable_app_insights = NULL, ssl_cert_pem_file = NULL, ssl_key_pem_file = NULL, ssl_cname = NULL, dns_name_label = NULL )
cpu_cores | The number of cpu cores to allocate for
the web service. Can be a decimal. Defaults to |
---|---|
memory_gb | The amount of memory (in GB) to allocate for
the web service. Can be a decimal. Defaults to |
tags | A named list of key-value tags for the web service,
e.g. |
properties | A named list of key-value properties for the web
service, e.g. |
description | A string of the description to give the web service. |
location | A string of the Azure region to deploy the web service to. If not specified the workspace location will be used. More details on available regions can be found here. |
auth_enabled | If |
ssl_enabled | If |
enable_app_insights | If |
ssl_cert_pem_file | A string of the cert file needed if SSL is enabled. |
ssl_key_pem_file | A string of the key file needed if SSL is enabled. |
ssl_cname | A string of the cname if SSL is enabled. |
dns_name_label | A string of the dns name label for the scoring endpoint. If not specified a unique dns name label will be generated for the scoring endpoint. |
The AciServiceDeploymentConfiguration
object.
deploy_model()
if (FALSE) { deployment_config <- aci_webservice_deployment_config(cpu_cores = 1, memory_gb = 1) }