{ "name": "ONE-SCALE", "deployment": "none", "roles": [ { "name": "appserver", "cardinality": 2, "vm_template": 0, "min_vms" : 5, "max_vms" : 10, "elasticity_policies" : [ { // +2 VMs when the exp. is true for 3 times in a row, // separated by 10 seconds "expression" : "CONNECTION > 2000", "type" : "CHANGE", "adjust" : 2, "period_number" : 3, "period" : 10 }, { // -10 percent VMs when the exp. is true. // If 10 percent is less than 2, -2 VMs. "expression" : "CONNECTION < 2000", "type" : "PERCENTAGE_CHANGE", "adjust" : -10, "min_adjust_step" : 2 } ] } ] }