oci_bds_auto_scaling_configuration

This resource provides the Auto Scaling Configuration resource in Oracle Cloud Infrastructure Big Data Service service.

Add an autoscale configuration to the cluster.

Example Usage

resource "oci_bds_auto_scaling_configuration" "test_auto_scaling_configuration" {
	#Required
	bds_instance_id = oci_bds_bds_instance.test_bds_instance.id
	cluster_admin_password = var.auto_scaling_configuration_cluster_admin_password
	is_enabled = var.auto_scaling_configuration_is_enabled
	node_type = var.auto_scaling_configuration_node_type

	#Optional
	display_name = var.auto_scaling_configuration_display_name
	policy_details {
		#Required
		policy_type = var.auto_scaling_configuration_policy_details_policy_type

		#Optional
		scale_down_config {

			#Optional
			memory_step_size = var.auto_scaling_configuration_policy_details_scale_down_config_memory_step_size
			metric {

				#Optional
				metric_type = var.auto_scaling_configuration_policy_details_scale_down_config_metric_metric_type
				threshold {

					#Optional
					duration_in_minutes = var.auto_scaling_configuration_policy_details_scale_down_config_metric_threshold_duration_in_minutes
					operator = var.auto_scaling_configuration_policy_details_scale_down_config_metric_threshold_operator
					value = var.auto_scaling_configuration_policy_details_scale_down_config_metric_threshold_value
				}
			}
			min_memory_per_node = var.auto_scaling_configuration_policy_details_scale_down_config_min_memory_per_node
			min_ocpus_per_node = var.auto_scaling_configuration_policy_details_scale_down_config_min_ocpus_per_node
			ocpu_step_size = var.auto_scaling_configuration_policy_details_scale_down_config_ocpu_step_size
		}
		scale_up_config {

			#Optional
			max_memory_per_node = var.auto_scaling_configuration_policy_details_scale_up_config_max_memory_per_node
			max_ocpus_per_node = var.auto_scaling_configuration_policy_details_scale_up_config_max_ocpus_per_node
			memory_step_size = var.auto_scaling_configuration_policy_details_scale_up_config_memory_step_size
			metric {

				#Optional
				metric_type = var.auto_scaling_configuration_policy_details_scale_up_config_metric_metric_type
				threshold {

					#Optional
					duration_in_minutes = var.auto_scaling_configuration_policy_details_scale_up_config_metric_threshold_duration_in_minutes
					operator = var.auto_scaling_configuration_policy_details_scale_up_config_metric_threshold_operator
					value = var.auto_scaling_configuration_policy_details_scale_up_config_metric_threshold_value
				}
			}
			ocpu_step_size = var.auto_scaling_configuration_policy_details_scale_up_config_ocpu_step_size
		}
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Auto Scaling Configuration * update - (Defaults to 20 minutes), when updating the Auto Scaling Configuration * delete - (Defaults to 20 minutes), when destroying the Auto Scaling Configuration

Import

AutoScalingConfiguration can be imported using the id, e.g.

$ terraform import oci_bds_auto_scaling_configuration.test_auto_scaling_configuration "bdsInstances/{bdsInstanceId}/autoScalingConfiguration/{autoScalingConfigurationId}"