Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Add ACCS Auto Scaling Policy #42

Open
scross01 opened this issue Jul 19, 2018 · 0 comments
Open

Add ACCS Auto Scaling Policy #42

scross01 opened this issue Jul 19, 2018 · 0 comments
Labels
accs Application Container Cloud Service new-resource

Comments

@scross01
Copy link
Contributor

Add a new resource to create an automatic (auto) scaling policy for an Oracle Application Container Cloud Service instance to defines rules and conditions for when to automatically scale the service instance.

Create an Auto Scaling Policy

The resource style should be similar to the JCS Autoscaling Policy for consistency

resource "oraclepaas_application_autoscaling_policy" "example" {
   service_instance = "${oraclepaas_application_container.example.name}"
   name = "my-auto-scale-policy"
   policy {
      operation = "scaleOut"
      alarm {
          metric_name = "CPUUtilization"
          metric_unit = "percent"
          statistic = "AVG"
          comparison_operator = "GreaterThanOrEqualToThreshold"
          threshold = 80
          sample_count = 3
          sample_frequency = 10
          breached_on_instance = "ALL"
      }
      cool_down_period = 30
      max_cluster_size = 4
  }
}
@scross01 scross01 added accs Application Container Cloud Service new-resource labels Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accs Application Container Cloud Service new-resource
Projects
None yet
Development

No branches or pull requests

1 participant