Abstract

Cloud is a widely used platform for intensive computing, bulk storage, and networking. In the world of cloud computing, scaling is a preferred tool for resource management and performance determination. Scaling is generally of two types: horizontal and vertical. The horizontal scale connects users’ agreement with the hardware and software entities and is implemented physically as per the requirement and demand of the datacenter for its further expansion. Vertical scaling can essentially resize server without any change in code and can increase the capacity of existing hardware or software by adding resources. The present study aims at describing two approaches for scaling, one is a predator-prey method and second is genetic algorithm (GA) along with differential evolution (DE). The predator-prey method is a mathematical model used to implement vertical scaling of task for optimal resource provisioning and genetic algorithm (GA) along with differential evolution(DE) based metaheuristic approach that is used for resource scaling. In this respect, the predator-prey model introduces two algorithms, namely, sustainable and seasonal scaling algorithm (SSSA) and maximum profit scaling algorithm (MPSA). The SSSA tries to find the approximation of resource scaling and the mechanism for maximizing sustainable as well as seasonal scaling. On the other hand, the MPSA calculates the optimal cost per reservation and maximum sustainable profit. The experimental results reflect that the proposed logistic scaling-based predator-prey method (SSSA-MPSA) provides a comparable result with GA-DE algorithm in terms of execution time, average completion time, and cost of expenses incurred by the datacenter.

1. Introduction

Cloud computing, the booming word in the field of distributed parallel computing, provides cheaper and powerful processing and storage technology [1, 2]. It is a geographically distributed resource sharing system. It deals with three types of resources, compute intensive, storage intensive, and network intensive, and also provides mainly three types of services: Infrastructure-as-a-Service, Platform-as-a-Service, and Software-as-a-Service [1]. The various cloud deployment models provide the way to access these services classified as public, private, hybrid, and federated cloud [3].

Virtualization is considered as the core component of the cloud environment, enabling access to resources. We can think virtualization as an abstraction of the computer. There are three primary fundamentals of virtual environment: guest, host, and virtualization layer [4]. The guest is the part of a system that communicates with the virtualization layer directly. The host provides the actual environment for the guest to process the job. The regeneration of homogeneous and heterogeneous environment for processing the job of guest is the responsibility of the virtualization layer. Cloud on-demand gives resource accessibility of hardware platform, operating systems, storage devices, and network resources to use virtually. Assigning users’ requirement to the sui resources distributed geographically over the internet is a tedious job. To perform this task, resources are divided into several execution environments known as virtual machines (VMs), thus providing a complete system to execute user requests [5]. The virtualization technique enables elastically scalable allocation of resources on-demand to the user during the normal season as well as at peak season time efficiently [1].

In recent years, various organizations, namely, Amazon and Google, provide platforms to avail computing and storage facilities by charging some amount as per the user’s need. Resource allocation is a way to assign available resources to the needed cloud request as per their demand. It is possible only by employing an efficient resource allocation technique; otherwise, the proper use of scarce resources within the limit of cloud cannot meet cloud user expectations[6].

Cloud computing provides a multiaccess system in which the resource exhibits unpredictable behavior upon the arrival of new user requests, whereas multiaccess systems result in complexity in the management of resources on-demand [7]. Therefore, optimality in the allocation of desired resources is highly desirable with cloud service providers.

The two major aspects of resource allocation in the cloud are VM allocation and resource provisioning. In the literature, we found there are two classifications for resource provisioning: reservation and on-demand plans [8]. When a customer acquires resource in advance based on its probable estimation of resource requirements, it is known as a reservation plan, while when customer acquires resource dynamically at runtime, it is known as an on-demand plan. The cost of resource provisioning is cheaper in the reservation plan than in the on-demand plan, but in the reservation plan, the consumer has to pay in advance to the provider [9]. Due to uncertainty in demand for resources, both plans cannot put the best provisioning scheme. On the basis of reference [10], various challenges in incorporating resource provisioning into operations are shown in Figure 1. Many issues are also involved in consideration of the selection of resource with conflicting demands.

An attempt has been made here to address the uncertain arrival of demand with maximum utilization of the resource. We formulated a predator-prey-based mathematical model to effectively autoscale the resource as per demand with optimum cost. Autoscaling is the process of provisioning and deprovisioning of the resource by adapting the changes incurred due to oscillation in demand. A set of decisions are needed to be taken in such a way that cost is minimized and QoS is maximized [10]. This is the automatic control problem. We present the control cycle of autoscaling in Figure 2 [11].

Here, the unlimited distributed resources in the cloud that are maintained at a positive level are considered renewable resources. Allocation, the central management of renewable resources, involved some critical considerations like what should be the provisioning rate? Also, how sensitive the resource fluctuation caused by the provisioning or by the system failures is? Therefore, the renewable resource control problem is similar to the predator-prey model. A possible phenomenon of this was modeled by Lotka and Volterra [12, 13, 14]. In this paper, we used a predator-prey model for formulating our resource management problem.

The above model is based on the classic predator-prey model of Lotka–Volterra equations and Holling type II functional response. Here, the functional response is the principal of time budget due to behavioral change of system.

The Lotka–Volterra equation is not fit for every situation. Some assumptions restrict the application of this model. The important assumption is that the survival of the predator (jobs) depends on the presence of the prey (resource) [15]. In the predator-prey model, there are two stages in predation: searching for food and handling of food which is very similar to the resource provisioning in a cloud environment; in the first step, we have to identify or search the suitable VMs for the requested job (predator), and in the next step, we have to process the job on allocated resources (prey).

The logistic prey (resource) growth and Holling type II functional response (effect of behavioral change of system after scaling) are taken into consideration. Holling type II response function allows Hopf bifurcation due to the stochastic nature of the arrival of jobs (predator). The Hopf oscillator is the appropriate tool to simulate the seasonal variation as the Hopf oscillator converges into one limit cycle from any set of initial conditions [16].

We consider here optimal scaling of renewable resources such as processing capacity, storage capacity, and bandwidth capacity in the cloud and try to find the solution for the following questions:(i) With proposed reasonable scaling model for renewable resource, what would be the maximal sustainable scaling?(ii) Concerning to giving economical parameters like discount rate, price, and overhead costs, what is the maximal sustainable profit?(iii) At what time or what rate should scaling resume to maximize the long-term profit?

The proposed algorithm was designed with a combination of the genetic algorithm (GA) and the differential evolution (DE) for resource scaling to identify optimum solutions to minimize the task and provide the best schedule within the cloud environment.

The remainder of this paper is organized as follows. Section 2 gives a brief overview of the problems related to the control management and prediction models of resource provisioning in the cloud environment. Section 3 describes the motivation for the present work. The proposed models and algorithms are presented in Sections 4 and 5, respectively. Sections 6 and 7 are devoted to the experimental setup for simulation and result and discussion. Finally, conclusions and future works are presented in Section 8.

Resource provisioning is one of the crucial and important tasks in cloud computing. In this process, we have to make a sequence of optimal decisions including the identification and selection of resources, determination of resource capacity for allocation, acquistion and release of resources, and methods to use resources dynamically at runtime. Cloud computing provides on-demand scaling or dynamic resource provisioning which helps cloud providers to deliver service level agreements (SLAs) related to performance-based metrics such as response time and execution time [17]. Many researchers proposed different solutions for autoscaling of resource on the cloud. Mao proposed a budget and deadline-based autoscaling technique and developed a data prefetching algorithm to reduce the intermediate data transfer time [18]. Qu provided autoscaling techniques and solutions for achieving efficient resource utilization with high-cost efficiency, low network latency, and high availability of web application [10]. Also, Qu claimed that the proposed approach maintains acceptable QoS and also increased the number of requests served during overloading periods. Mosleh et al. [19] came up with adaptive cost-based task scheduling algorithm and claimed that it had better performance and CPU utilization. Kohavi and Longbotham [20] outlined the experimental results of two popular web applications showing the direct impact of increasing response time on their revenues. Cloud providers, however, have difficulty in ensuring an SLA response time as described by Islam et al. [21].

Also, for efficient utilization of the resource, the challenge is to model a system’s workload behavior so that a predictive function can be used to complete the resource scaling in advance. Previous work used different approaches to model application workload behavior and predict the resources needed to ensure performance. Most of the work used CPU and memory resource usage data as prime inputs to their predictive models because these two resources mainly affect the performance of a task. Ai et al. [22] contributed a Markov chain-based continuous time model for predicting the measurement of elasticity. Wang et al. [23] proposed a theory based on an exogenous model of the autoregressive moving average to predict CPU and memory resource need and scale up virtual machine configurations that include cores, memory, types, and speed. Lu et al. [24] outlined prediction model for reducing undesirable energy consumption of datacenter based on backpropagation neural network. Roy et al. [25] also proposed an ARMA workload prediction model to minimize costs. Huang et al. [26] reported computer resource scaling to meet QoS requirements. Their approach is rule-based and model-based. It has been found that the model-based approach was the most promising mechanism for managing resources to provide QoS guarantees. Wang et al. [23] used vertical scaling to analyze the relationship between CPU resource allocation and mean response time. Iqbal et al. [27] proposed a reactive model to automatically detect and fix resource bottlenecks to provide a fixed model. Han et al. [28] used a G/G/n queuing model to develop an adaptive scaling technique to minimize cloud infrastructure pricing for users. Bi et al. [29] used a combination of M/M/c and M/M/1 queuing models to dynamically manage resource allocations to cloud-based VMs. Wu proposed a cost-effective dataset management model [30].

A control theory approach for systems provides a rigorous technique for modeling, designing, analyzing and evaluating system performance, as mentioned by Zhu et al. [31]. The theory of control can be used to manage the uncertainty and disruption of a system, described by Maggio et al. [32]. Padala et al. [33] relied on control theory and discussed CPU utilization. Kamra et al. [34] and Liu et al. [35] showed resource management efficiency, but not in cloud computing. Kalyvianaki et al. [36] suggested a self-adaptive controller, which used a Kalman filter to allocate CPU resources dynamically to virtualized requests in a cloud environment. They refer to CPU usage data fluctuations. Diao et al. [37] suggested a method for maintaining system performance by controlling the server’s maximum number of connections and monitoring the use of the CPU. Storn and Price’s [38] differential evolution (DE) algorithm is a simple but powerful population-based stochastic search technique for solving global optimization problems. It is a heuristic approach to present the possibility of minimizing continuous space functions that are nonlinear and nondifferentiable. Through an extensive testbed, it is demonstrated that the DE method converges faster with greater certainty than many other acclaimed global optimization methods. The DE method requires a few variables of control. It is robust, easy to use, and suitable for parallel computation.

Goswami and Saha used first time in 2013 a predator-prey model for allocation of resource in the stable and volatile scenario in a cloud environment [39]. Based on these two scenarios, Goswami et al. used agent-based algorithm for taking an optimum decision through identifying the situation. They extended their work by using the predator-prey model for defining the elasticity of cloud resource allocation [9]. Consequently, they proposed a prediction model based on an ALVEC-model for predicting future load, dynamically auto-tuning the parameters and allocating VM accordingly. Inspired by the aforementioned paper, we used the logistic growth model to determine the resource pool size in VM level scheduling. We found that the demand of resources is scaled up according to the resource carrying capacity of the host, and the performance of the datacenter in terms of reducing the total execution time of the job can be maximized and while also maximizing profits.

3. Motivation

In the cloud, resource scaling is one of the challenging tasks for cloud distributors. This is the backbone of optimum resource utilization. In response to increased workload, cloud providers scale up and down resources (CPU, memory, storage, network, etc.) and have to face functional complexity in maintaining QoS. The user therefore only pays for the number of resources and services they use. Cloud hosting companies, on the other hand, aim to maximize profits by serving customer requirement and also maximizing resource utilization with minimum cost. The motivation of this is to guide a user in their efforts to predict resource scaling and related costs and to help resource providers maximize resource utilization while maintaining a profit. Furthermore, under the reservation plan, we have two major issues, namely, underprovisioning and overprovisioning. Underprovisioning is caused due to high demand and low available resources, while overprovisioning is due to less demand and highly available resource. Consequently, it is a problem of determining resource pool size. As a result, we are motivated to design a mathematical model for profitable optimal resource scaling pool size approximation to maximize the performance of the datacenter by reducing the total execution time of job and trying to maximize their profits.

4. Proposed Work

We proposed to design and analyze two algorithms sustainable and seasonal scaling algorithm (SSSA) and maximum sustainable profit scaling algorithm (MPSA). In the case of SSSA, we first tried to find the approximation of resource scaling under both sustainable scaling and seasonal scaling and then to determine the optimal resource scaling pool size and time for resuming the scaling (S). For the development of MPSA, we tried to find the optimal cost per reservation and maximum sustainable profit scaling. Here, both algorithms use the differential evolution (DE) algorithm. In the proposed algorithm, DE is used to solve the next population to GA (see Figure 3). In this algorithm, the premature convergence is avoided by comparing the produced children with their parents; if the fitness value is better than the parents, then the parents are replaced by children, or else it is aborted. Once the initial population is generated, the fitness values of the solutions are evaluated. In each iteration of the algorithm, the termination condition is checked. If the termination condition is satisfied, then the algorithm produces optimal solutions. Otherwise, GA combined with DE algorithms are applied to the individuals.

4.1. The Logistic Resource Scaling Model

This model is based on two species: the number of predators (job) and the number of its prey (resource’s capacity) with a fixed number of predator (job pool) per prey (resource). This is a scaled predator-prey model. First, we model the case in which the numbers of predators and the prey birth and death rates grow logistically under the environment’s carrying capacity limit. The second case is the effect on the population of prey after the predation. This system has a limit cycle. The range of this limit cycle will give information about the resource scaling limit. Inspired from this, we make the simple assumption that resource population under consideration scales according to the proposed model if left alone. Table 1 depicts the variables and parameters used in our model.

In the actual scenario, the four parameters: p, , n, and CB, are not constant. But for simplicity, we assume them here as constant. Moreover, we shall mostly be interested in the scaling of a job of constant size on particular physical machine:

The resource scaling at particular time, denoted as , isi.e., proportional to the job per resource, , and the population of resource, , with a proportionality constant q known as resource selection rate. Therefore, for a limited job per resource, U, the resource scaling will be

By this assumption, the resource population, , of the datacenter will satisfy the logistic scaling model:where R is a constant, representing an intrinsic rate of increase in the population, and K is the carrying capacity of the datacenter. If we consider the job that is already running on a physical machine (PM), then the scaling of the resource for that job becomes active at a time, S> 0, and equation (4) becomes

Equation (5) gives the change in resource capacity due to initiation of resource scaling. After some rearrangement, the overall change in resource capacity of the datacenter will represent the logistic resource scaling model as

The solution to equation (5) will be denoted as or for t ≤ S and t > S, respectively. It is convenient to express the initial resource population as a fraction of the carrying capacity of the datacenter. Hence, we write , where N > 1.

Solving (5) for , we have

Equation (4) is a time separable first-order differential equation and can be easily integrated. In the next section, we classify the resource scaling situation.

4.2. Classification of Scaling

The fulfilment of resource demand from user depends on the availability of resource at the datacenter. The case when the size of resource demand is within the average range of available resource capacity of the datacenter, we name it as stable condition, and if the demand is beyond and below the average range of resource availability, it is the case of unstable condition. The presence of stable conditions is termed sustainable scaling, whereas the presence of demand fluctuation between stable and unstable conditions is termed seasonal scaling. In the next section, we elaborate sustainable and seasonal scaling in detail.

4.2.1. Sustainable Scaling

In this section, we mostly formulate the static resource population size under sustainable scaling. When scaling starts, the aim is to increase the number of jobs such that resource scaling is sustainable. We must have a stable scaling; when t > S, the steady solution of equation (5) is required. To achieve this steady state, is chosen to satisfywhich yields the following solution:

If scaling starts at time S > 0, the resource population satisfies (4) for t<S, and for t>S, we insist that  = . Of course, must be continuous at t = S; therefore,

Isolating the exponential givesand taking the logarithm of both sides and solving for S yieldswhich gives S as a function of the job per resource size U. This formula for S indicates when scaling should be resumed. In the next section, we will try to formulate a model for maximum sustainable scaling.

(1) Maximizing Sustainable Scaling. In order to determine the maximum limit cycle of resource scaling, here we are using the concepts of Hopf oscillation. We are now trying to formulate the maximum resource scaling approximation for sustainable scaling in this section. In order to find the maximal sustainable scaling from the analysis presented above, a static resource population with a constant number of job per resource is given by expression (9) as

The scaling associated with this population level isand we wish to choose U such that H (U) becomes maximal. To this end, just compute the derivativesand solve the equation . As a result, , which determines the optimal amount of job. The equilibrium population is then  = , and the maximum sustainable scaling is

4.2.2. Seasonal Scaling

In this section, we will assume the case of seasonal scaling and try to formulate the mechanism for optimal resource scaling size.

There is a period (typically when demand is high in a year) where the resources can grow undistributed, and then there is a (usually rather low demand) seasonal scaling. Here, we present a very elementary method to analyze such scenarios. Let be the resource population in the nth time. In the absence of scaling, the discrete model under consideration is of the typewhere is the size of the resource population from the previous scaling and the latter half of the equation represents the scaling of the population using the logistic resource scaling model given in (4). Note that we are now talking about scaling rather than scaling rates as in the differential equation (4) via the standard Euler approximation where we take

It can be observed that the discrete dynamical system (17) is, therefore, quite a rough approximation of the logistic resource scaling model. However, it offers an acceptable estimation of the next season’s population. It is an estimation which can be used to predict maximal sustainable scaling, the optimal distribution of job per resource, etc.

Our objective is again to maintain a resource population, which may be scaled with an optimal job from time to time; therefore, to maximize the sustainable scaling, it is necessary to consider the scaling portion of the model. The sustainable scaling will be maximized for a population X for which the scaling term is maximized. Hence, we solvewhich occurs when .This is identical to the population X2 defined in equation (9). The maximal possible scaling is then determined by substituting back into the scaling model:

This gives the identical result to the exact one from the previous calculation, except that R has been replaced by R1.

Now, it seems natural to expect that the size of the optimal load required to scale the maximal sustainable scaling is , consistent with the result obtained from the differential equation model. However, this is not quite accurate because of a subtle point that we have so far ignored. The point is that we have not yet defined whether Xn is the resource population before and after the allocation season. The two will not be the same. Assuming that the peak scaling season is relatively short for the closure period, the difference between the two will just equal the scaling.

Let us agree that Xn is the resource population in time n after the peak scaling season. We write the complete model, including running scaling as

Here, the constant q1 should be thought of as . is the resource population in time n before scaling, and Xn is the population after scaling. In particular, if , then . This implies that the resource population is not steady and workload has to take this into account.

Substituting for and and equating yields

Next, we have to compare this with the optimal resource scaling’s size predicted by sustainable scaling. Note that the argument in this analysis depends on only three inputs: the available allocated resource population at the same point in time, the carrying capacity of the resource, and the constant intrinsic rate of allocation. All three can be estimated from current or previous scaling statistics. In the following section, we discuss the profit maximization of resource provider by including the complexity of economical parameters like incentive rate per resource type, maintenance cost, and overhead cost, which gives optimal resource scaling size for maximum profit and maximum sustainable profit.

5. Maximizing the Profit

We now include the additional complexity of economic parameters such as maintenance costs, overhead costs, and interest rates. First, we will set up an objective function which will represent the sustainable profit. Profit is revenue minus total cost. The revenue per unit time, denoted as , is the profit per unit scaling:

The total cost per resource, C, is the sum of overhead cost and wage per unit time of a mean number of the broker, given asand the cost of job per unit time, , is

This gives the profit per unit time, denoted as , as

Let us include an interest (discount) rate , which is assumed to be constant. Using equation (26), the present value of the expected profit at some time t is given by

Integrating , the true return or total profit rate in present unit cost, denoted as J, is expressed as

This is the sustainable profit function to be maximized. The main weakness of this model is that the interest rate is assumed to apply to everything, yet CB, , and are assumed to be constant. In reality, will probably grow with or even faster than general inflation, and CB is influenced by factors such as technological advancements, union negotiations, government policies, and tax rates (all come under SLAs). It is possible to include stochastic fluctuations in numerical simulation to arrive at more realistic predictions. However, for a first analysis, we will proceed with the given unrealistic assumptions.

Function (28) becomeswhich is a function of resource pool size . It is easy to include a modification where the reservation price of the resource and the cost per job, and C, both increase with time. Suppose, for example, that they both grow at the same rate such that

We then obtain an objective functionwhich is well defined if (if the function will in general no longer be finite). Now, when both and C grow with time, we can replace by so that we can conclude at what time, t = S > 0, a workload of constant size should resume scaling such that is maximized.

5.1. Optimal Resource Scaling Pool Size

In this section, we explain how to find the resource scaling pool size for a maximum profit. Having found a formula for S in equation (12) (the time when scaling should start) as a function of U, the profit function (which in equation (28) is a function of , i.e., of U and S) is a function of U alone.

Substituting from equation (9) and S as given in equation (12) reduces equation (28) towhere for a given resource pool size U, everything except the exponent is constant. Integration givesand after making the substitution , this becomes

This profit function will be negative if . This indicates the condition under which it is no longer profitable to scale. The profit function will be maximized at the point such that

Scaling should resume at the time to maximize the profit.

5.2. Maximal Sustainable Profit

To calculate the maximal sustainable profit, we have to maximize the profit per unit time given by equation (26) in an equilibrium situation. In this case, we take (constant), and substituting the value of then the rate of profit will be , with value of at equilibrium from the equation (9) becomes the following simple function:which is maximized for , with , as shown in Section 4 earlier. The associated equilibrium resource population is then

The scaling rate and sustainable profit become

Next, we develop two algorithms on the above formulated logistic scaling-based predator-prey model. In sustainable and seasonal scaling algorithm (SSSA), we try to find the scaling rate of each allocated resources and check the condition for sustainable and seasonal scaling. We also check the condition to obtain the optimal resource scaling size. Next, in the maximum profit scaling algorithm (MPSA), we evaluate profit per scaling and profit to achieve maximum sustainable scaling and optimum resource scaling size with maximum profit.

5.3. Proposed Algorithm

Now both Algorithms 1 and 2 proposed earlier can be defined as follows.

(1)Input: population of allocated resources = ,
 Resource scaling’s size = U
 Resource selection rate = q
 Resource allocation rate = R
 Carrying capacity of datacenter = K
Output: optimal resource scaling size, maximum sustainable, and seasonal scaling.
(2)Initialize the allocated resource population using equation (7).
(3)Find the scaling of the resource using
 If the population of allocated resources, , then sustainable scaling is possible
  Scaling of resource
  If , then sustainable scaling is maximized
  If scaling’s size , then resource scaling’s size is optimal, i.e., .
 else
  Update R and q for the seasonal demand period using the following equation and
  Update allocated resource population (i.e., ) for nth time period using equation (17).
  If , then seasonal scaling is maximized, and if , then resource scaling size is optimal.
(1)Input: CB, , n, .
Output: maximum profit, optimal allocation level, sustainable scaling rate, and sustainable profit rate.
(2)Calculate scaling rate .
(3)Calculate the total cost per resource C and the cost per unit workload.
(4)Calculate the profit per unit workload using equation (26).
(5)Calculate the total profit rate (J) using equation (28).
(6)If and C are increasing and , then update and C using equations (30) and (31).
(7)Calculate the total profit rate using equation (32).
(8)Calculate the profitable scaling capacity per resource () using equation (36) and profitable scaling time as
(9)If () where , then maximum sustainable profitable scaling capacity is obtained.
(10)The sustainable scaling rate in equilibrium resource population (38) can be calculated using equation (39) and profit rate by using equation (40).

6. Experimental Setup

To test the proposed model, we first numerically verified this model using the Runge–Kutta fourth order (RK4) approximation method and Adams–Moulton method for parameter estimation. Based on two cases of predator-prey population variation, we analyzed the stability condition. Two cases of parameter variations are as follows:(i)Job completion rate is higher than job arrival rates (q > R)(ii)The job arrival rate is higher than the job completion rate (R > q)

The RK4 method produces sets of the approximate solutions by dividing the solution domain into a set of discrete points. We start the initial data at time t = 0 and then estimate the approximation at time , where i = 1, 2, 3, …, n. The step size h is chosen suitably. In each step i, it generates a different solution. By using this different solution, we are evaluating our algorithm for sustainable and seasonable scaling criteria. Under each case, we are evaluating the cost and profitability scaling approximation. We examine the behavior of logistic scaling models with several sets of the parameter’s value given in Table 2.

Figure 4 shows the behavior of resource availability, job arrival, and corresponding maximum possible scaling under the sustainable condition for two sets of parameter variation.

We again verified our proposed algorithm for maximum performance of the datacenter by reducing the total execution time (makespan) of the job and maximizing the profits of the datacenter. The proposed scheme is developed using Java programming language-based simulation tools NetBeans 8.1 and CloudSim 4.0. In construction of a cloud datacenter environment, the servers had 240 times MIPS of any VM, 16384 MB RAM, 1 GB storage, quad and dual core processors, and 10000 kbps bandwidth configuration. Also, virtual machines have been configured by assigning their basic entities and parameters such as 100 MIPS, 128 MB the size of RAM, 100 kbps bandwidth, 1 GB storage, and single-core processor. Each datacenter consists of two hosts. The CloudSim initialized and constructed the datacenter on the basis of the assigned configuration for the user's job. All jobs have been submitted dynamically. In almost every simulation, the jobs are dynamically submitted within a time frame, which is 1000 ms. The cloudlets for each simulation have been submitted in three batches. The initial batch of VM and cloudlets are identical for each simulation to have a fair comparison.

7. Result and Discussion

Our end goal of the numerical method was to perform a phase plane analysis on the proposed logistic scaling model. The first step in this direction was to find the nullclines of the system by equating equations (4) and (5) to zero. For phase analysis, we denoted equation (4) as and equation (5) as . So, F-nullclines are either X = 0 or X = K and G-nullclines are either X = 0 or . Next, we found the steady-state condition which was obtained by finding the intersection of F-nullclines with G-nullclines. Thus, the steady states are (X1, Y1) = (0, 0), (X2, Y2) = , and (X3, Y3) = (K, 0). To find stability around each steady state, we found the Jacobian of the system. Hence, a stability condition was obtained around points (X1, Y1) and (X2, Y2) when R, q < 0 at each point, whereas for point (X3, Y3), same was obtained when and Rq < 0. The result shows that the stability of the model does not depend on the population of either resource or job. The scaling amount and direction of the scaling curve at each steady state were determined by the eigenvalues and corresponding eigenvectors, respectively. Therefore, in the same way, we obtained (X1, Y1), (X2, Y2), and (X3, Y3) as saddle points. Therefore, the scaling function H(t) is directly proportional to the resource population , thus implying that the resource should be scaled up as long as the resource carrying capacity shows better resource utilization.

Figure 5 shows the result of analytical RK4 method for resource fluctuation. The X-axis and Y-axis represent the time variation and the resource population, respectively. This depicts the behavior of resource availability in the cloud at a particular time.

It can be seen in Figure 6 that it is the case of underprovisioning as the size of job always exceeds the available resource capacity. We may conclude that in this case, seasonal scaling will solve the issue.

Figure 7 shows the results of a numerical method for the approximation of resource scaling. It confirms that the growth of scaling is directly proportional to the available resource capacity monotonically.

Figure 8 shows the results for maximum sustainable scaling of available resource in terms of , whereas Figure 9 shows the result of instability as we move away from the saddle point (7, 52). Here also we proceed with seasonal scaling approach.

The comparative performance evaluation of the two proposed approaches is depicted in Figure 10. In Figure 10(a), we see that SSSA-MPSA performs better than GA-DE. Here, X-axis represents the number of batch and Y-axis the average completion time, i.e., throughput of tasks. In batch 1, SSSA-MPSA took 200 s while GA-DE 1100 s. Thus, we can say that SSSA-MPSA performs 9 times faster than GA-DE. Similar results can be observed in the case of batch 2 and batch 3 where SSSA-MPSA is 9 times faster than GA-DE.

A graph, in Figure 10(a), is drawn between the number of batches on X-axis and the completion time on the Y-axis. It shows that the efficiency of the resource scaling of the proposed algorithm in a datacenter. In Figure 10(b), a graph is drawn between the number of tasks and the makespan, which are represented by the X-axis and Y-axis, respectively. It depicts the improved execution time of the proposed model compared with GA-DE algorithm. In the figure, the result shows that SSSA-MPSA performs 2 times faster than GA-DE algorithm for 60 tasks and 72 tasks while GA-DE performs 2 times faster than SSSA-MPSA for 150 tasks. Another chart, in Figure 10(c), is plotted between the number of batches on X-axis and the cost of expenses on Y-axis, and it illustrates that the SLA violations are minimized and profit is maximized. Here also we find the SSSA-MPSA performs better than GA-DE.

8. Conclusion and Future Work

In resource provisioning, autoscaling is one of the major issues for the cloud environment at VM level scheduling. Mathematical models based on the predator-prey method was developed and tested to implement the vertical scaling of the task for optimal resource provisioning. Here, we tried not only to find the mechanism for maximizing sustainable and seasonal scaling but also to maximize the profit by considering the optimal resource pool size and incentives per resource for users. Logistic scaling for resource population is one of the realistic approaches rather than exponential as per the environmental carrying capacity limitation. Through phase plane analysis, we discovered three steady states and their stability, which was dependent not on the resource population or the number of jobs but instead on the parameters of the intrinsic rate of increase in resource availability, the resource scaling rate, and the maximum datacenter resource capacity. The behavior of the model is to predict the population scaling of the resource and jobs to reach an equilibrium position. This model introduced sustainable and seasonal scaling algorithm (SSSA) and maximum sustainable profit scaling algorithm (MPSA). It tried to find the approximation of resource scaling under the sustainable and seasonal scaling and also found the optimal cost per reservation and maximum sustainable profit. The logistic scaling-based predator-prey algorithm provided a comparable result with the metaheuristic method based on genetic algorithm (GA) with differential evolution (DE) algorithm for execution time, average completion time, and cost of expenses incurred by the datacenter. For future extension, this work can be used for efficient utilization of energy consumption and minimization of energy expenditure of the datacenter.

Data Availability

The data used to support the findings of this study are included within the supplementary information.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Supplementary Materials

This file contains the sample dataset of our experiment on which we have tested our two algorithms: SSSA-MPSA and GA with DE. (Supplementary Materials)