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

Add JCS Autoscaling Policy #40

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

Add JCS Autoscaling Policy #40

scross01 opened this issue Jul 19, 2018 · 0 comments
Labels
jcs Java Cloud Service new-resource

Comments

@scross01
Copy link
Contributor

Add support for an Java Cloud Service Auto Scaling Policy resource. The policy defines rules and conditions for when to automatically scale the service instance.

https://docs.oracle.com/en/cloud/paas/java-cloud/jsrmr/api-automatic-scaling.html

E.g. potential target configuration

resource "oraclepaas_java_service_autoscaling_policy" "example" {
   service_instance = "${oraclepaas_java_service_instance.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 new-resource jcs Java Cloud Service labels Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
jcs Java Cloud Service new-resource
Projects
None yet
Development

No branches or pull requests

1 participant