Question: Python solution needed A risk modeling system uses a scaling computing system that implements an autoscale policy depending on the current load or utilization the

Python solution needed
A risk modeling system uses a scaling computing system that implements an autoscale policy depending on the current load or utilization the computing system. The system starts with a number of computing instances given by instances. The system polls the instances every second to see the average utilization at that second, and performs scaling as given below. Once any action is taken, the system will stop polling for 10 seconds. During that time, the number of instances does not change. Average utilization > 60%: Double the number of instances if the doubled value does not exceed 2 * 1018. This is an action. If the number of instances exceeds this limit on doubling, perform no action. Average utilization 60 so the number of instances is doubled. There are no more readings to consider and 2 is the final answer. Example 1: Input: averageUtil=[1, 3, 5, 10, 80] Output: 2 Explanation: st and 2 Here instance = 1 and averageUtil = [5, 10, 80] . At the 1 nd seconds of the time period, no action will be taken, Even though the utilization is less than 25%, the number of instance is 1. During the 3 second, the no of instance will be doubled to 2. rd Constraints: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
