Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedPython 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions