Skip to content

Instantly share code, notes, and snippets.

@fatih-keles
Last active May 2, 2023 11:29
Show Gist options
  • Save fatih-keles/3f66d6a6ef6388189ed255b9da3882bd to your computer and use it in GitHub Desktop.
Save fatih-keles/3f66d6a6ef6388189ed255b9da3882bd to your computer and use it in GitHub Desktop.
[
{
"capacity": {
"initial": 3,
"max": 6,
"min": 3
},
"display-name": "autoscaling-policy-cpu80percent",
"policy-type": "threshold",
"rules": [
{
"action": {
"type": "CHANGE_COUNT_BY",
"value": -1
},
"displayName": "example_scale_in_condition",
"metric": {
"metric-type": "CPU_UTILIZATION",
"threshold": {
"operator": "LT",
"value": 20
}
}
},
{
"action": {
"type": "CHANGE_COUNT_BY",
"value": 1
},
"displayName": "example_scale_out_condition",
"metric": {
"metric-type": "CPU_UTILIZATION",
"threshold": {
"operator": "GT",
"value": 79
}
}
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment