separated compute

This commit is contained in:
David Apolinar 2021-09-20 11:22:12 -04:00
parent 7a356afd12
commit 44679c877a
2 changed files with 26 additions and 25 deletions

View File

@ -0,0 +1,26 @@
# Compute Instance
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
name = "default-instance"
location = azurerm_resource_group.default.location
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
virtual_machine_size = "STANDARD_DS2_V2"
}
# Compute Cluster
resource "azurerm_machine_learning_compute_cluster" "compute" {
name = "default-compute"
location = azurerm_resource_group.default.location
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
vm_priority = "Dedicated"
vm_size = "STANDARD_DS2_V2"
identity {
type = "SystemAssigned"
}
scale_settings {
min_node_count = 0
max_node_count = 3
scale_down_nodes_after_idle_duration = "PT10M" # 10 minutes
}
}

View File

@ -52,29 +52,4 @@ resource "azurerm_machine_learning_workspace" "default" {
} }
} }
# Compute Instance
resource "azurerm_machine_learning_compute_instance" "compute_instance" {
name = "default-instance"
location = azurerm_resource_group.default.location
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
virtual_machine_size = "STANDARD_DS2_V2"
}
# Compute Cluster
resource "azurerm_machine_learning_compute_cluster" "compute" {
name = "default-compute"
location = azurerm_resource_group.default.location
machine_learning_workspace_id = azurerm_machine_learning_workspace.default.id
vm_priority = "Dedicated"
vm_size = "STANDARD_DS2_V2"
identity {
type = "SystemAssigned"
}
scale_settings {
min_node_count = 0
max_node_count = 3
scale_down_nodes_after_idle_duration = "PT10M" # 10 minutes
}
}