From 1837367ef776a06bba6cf2bae84b49ce5dbec952 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 27 Mar 2024 19:09:04 +0300 Subject: [PATCH] Add changeable CPU threshould --- azure-arm-template/antmedia-azure-autoscale.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-arm-template/antmedia-azure-autoscale.yaml b/azure-arm-template/antmedia-azure-autoscale.yaml index cde85dc3..87a82f13 100644 --- a/azure-arm-template/antmedia-azure-autoscale.yaml +++ b/azure-arm-template/antmedia-azure-autoscale.yaml @@ -38,6 +38,13 @@ "description": "Type of Edge VMs in the VM Scale Set." } }, + "CPUPolicyTargetValue": { + "type": "int", + "defaultValue": 60, + "metadata": { + "description": "This parameter for creates new Instances when CPU load exceed to %60." + } + }, "MongoDBInstanceType": { "defaultValue": "Standard_D2s_v3", "type": "String", @@ -699,7 +706,7 @@ "timeWindow": "PT5M", "timeAggregation": "Average", "operator": "GreaterThan", - "threshold": 60 + "threshold": "[parameters('CPUPolicyTargetValue')]" }, "scaleAction": { "direction": "Increase",