Professional Documents
Culture Documents
Optimizing Cloud Comuting
Optimizing Cloud Comuting
1. INTRODUCTION 2. OBJECTIVES:
The effective management of cloud computing and Our objective here is to optimize the simplified system of
storage resources is paramount for Software as a Service cloud computing that we have used in the domains of
(SAAS) companies striving to balance performance with cost,space and time while keeping in mind some other
cost efficiency. By exploring strategies to minimize external factors so as to understand the results better, and
expenditure without compromising operational efficacy, the interdependence of the 3.
this study aims to provide valuable insights for SAAS
enterprises navigating the complexities of cloud 3. ALGORITHM:
infrastructure management. In the use of the greedy process, we used the hillside
algorithm to minimize the cost with budget and space
The motivation behind this study arises from the (optional) constraints. Going through various iterations
pervasive reliance of SAAS companies on cloud there were 2 major problems that we faced with the use
computing and storage services, which often constitute a of such an algorithm. Firstly, the time taken for running
substantial portion of their operational expenses. the algorithm is much longer compared to a model
Recognizing the imperative to optimize resource approach. Secondly, there are higher errors as this
allocation in the face of finite financial resources, this process/algorithm simply focuses on local
endeavor seeks to uncover strategies for mitigating costs minima/maxima(for profit) rather than the global
while ensuring scalability and performance. counterpart.
Assuming a company requires some number of resources Variables : Reserved and On-Demand Instances
daily. This need is different for different days, depending Constraints: Total Budget constraint,daily demand
on various factors like user traffic or internal testing. fulfillment of instances required.
These resources can be bought from cloud service
providers like AWS, Azure, or Google Cloud. 4. COST OPTIMISATION
For the project, we took the case of AWS where these In the initial understanding of the simplified system we
resources can be bought in the form of EC2 instances. EC2 have created, cost optimisation becomes the first step to
stands for Elastic Compute Cloud, which means these understand the process. Here, variables are Reserved
instances can be customized based on the company’s and On-Demand Instances and the constraint is simply
needs. So the primary aim of this project is to find how that of Total no. of instances per day. Firstly we took a
different factors affect the total cost to the company and constant discount d, irrespective of the reserved
how it can be optimized. instances bought.
5. DIFFERENT DISCOUNTS
The discount depends on the number of required It the above plot, for multiple values of discount, we got
instances bought. So we need to see how the previous some number of instances wasted while the total cost
results change with the change in discount. So we tried changes.
to get various results on different variables.
Following are the results: Later, we tried to update the objective function and
include discount as a variable.
Most basic assumption of discount would be to make it
vary linearly with the reserved instances. However we
were not able to find a proper solution when discount
was a linear function of reserved instances, Xr.
So we took the discount as a step function and made an
objective function using binary functions.
6. GROWTH FUNCTION
Given that we are taking a distribution of instances
required from last month. We implemented a growth
function which can be considered as a prediction
function which modifies the past data based on various
factors like trends, news,etc.
We for example have taken an exponential function in
In this plot, we can see that as the discount increases, the our implementation .
number of instances that are wasted, that is the reserved
instances that were not used, increases.
3
ME 312 Project Report
GPU_space: 18489.230769230773
Objective function : minimize(w * total_cost + (1 - w) * CPU_space: 31510.769230769223
total_space)
w=weight factor Space_used: 50000.0
Assumptions : Space and cost of instances computed on
CPU and GPU are different and the number of CPU &
GPU used also vary for each reserved and on demand. 9. TIME , SPACE AND OPTIMISATION :
Known data : Cost of instances for CPU & GPU, space Incorporating time optimization alongside cost and
occupied by instances in GPU & CPU , daily need of space considerations further complicates the integration
instances,weight parameter value
of CPU and GPU, as upgrades must also account for
minimizing processing time. Achieving this
comprehensive optimization requires meticulous
Results :
planning to balance cost-effectiveness, spatial efficiency,
and timely task completion.
Results :
4. Jayant:
● Variable discount
● Presentation
2. Dhruv
● Defining the problem statement and factors to
be included in the project.
● Formulating the cost optimization model and
implementing its code.
● Exploring the effect of discount and defining the
variable discount model.
● Visualization and plots.