Go back to all articles

10 Ways to Optimize Cloud Costs

Feb 20, 2023
8 min read

Businesses have been migrating to the cloud for quite a while: according to statistics, 94% of companies use cloud technologies, which accommodate 67% of their IT infrastructure. The cloud computing market reached $480 billion in 2022, and it keeps growing. Clouds have many advantages, which include not only their own hardware and almost unlimited capacity, but also their ability to rapidly scale following company needs and higher safety than on-premise solutions.

Cloud services can reduce the company’s IT budget significantly by replacing the burden of infrastructure capital costs with flexible subscription-model usage rates. However, is not always evident how to analyze and control expenses for the cloud. For this reason, many organizations began to introduce FinOps practices. We have decided to make our contribution and give you some practical tips on how to take control over bills from AWS, Google Cloud, Azure, and other cloud services.

1. Review cloud billing data

Start with structuring your costs and figuring out what exactly you pay the cloud provider for. Usually, they give rather detailed information on what makes up your monthly bill. Moreover, most major providers have special tools to control costs, such as Cost Management from Google and Microsoft, or AWS Cost Explorer from Amazon.

Create a top-down cost structure: first, identify the main accounts that generate the costs, then sort the services within these accounts by descending. The next level of detail is at the particular resources level. In many cloud services, you can identify data for analysis with tags, for example, allocate costs across projects or departments. As a result, you will have a big-picture view of the main cloud cost producers. They have the greatest potential for optimization, so take a very close look at them.

2. Only pay for the compute you need

Having analyzed your most significant expenses, you will surely have found services that you do not use. These can be virtual machines created for a test project, or so-called zombie-instances – old tasks that continue to run and spend computing resources at your expense. File repositories are often overlooked, too. Look at the date of last access to the disk–if no one is using it for a long time, the data stored there may well be no longer needed.

Getting rid of what you don’t need is a process that should be approached thoughtfully, with a cool head, so as not to accidentally lose important information or an important application. This is especially true for virtual machines: before disconnecting them, double-check whether it would affect other related systems.

3. Choose storage classes wisely

One way to optimize the cost of the cloud service is to choose the storage class that is appropriate for your business. These are levels of data availability: the faster the data can be extracted from the storage, the more expensive its cost. Not all files need real-time availability: for example, archival data, backups, and other types of information can be obtained with delay.

Cloud providers usually offer several options of storage classes–from the most expensive quick access to deep archiving with time to recover data of a few hours. Amazon, for instance, has a S3 Intelligent-Tiering that automatically controls the class and price of data storage based on data demand and usage patterns.

4. Optimize cloud computing usage

Are you sure you need all those applications running in the cloud 24/7? Of course, commercial systems and critically important software should always be available. But what about the virtual machines used by developers, or the apps that only a few people in the office need?

Weekends and nights can account for up to 50% of total cloud computing time. Unlike your own server, which is much cheaper even when working around the clock, cloud load is billed by time. To reduce costs, you can configure scheduled activation of some applications and automatic launch and shut down of development environments.

Another way to save money is to specify the exact amount of memory and computing resources available to each application. Default parameters usually include a reserve, so it makes sense to bring them as close as possible to reality and base the numbers on accumulated data.

5. Test your apps performance and autoscaling configuration

The poorly optimized system not only dissatisfies users but also consumes more hardware resources, such as CPU, RAM, network, input/output, etc. And even a cloud service provider will be happy to allocate you higher capacities, be sure you will pay for this. To find out how much resources the application needs, you should conduct scalability testing. Based on its results you could reveal weak points and optimize the code, and therefore reduce cloud costs.

Another thing to consider is autoscaling parameters. Many cloud service providers offer an autoscaling feature, which automatically allocates more resources when your app needs them. This seems fair enough: the more resources you use, the more you pay. But how heavy should be the load to trigger such scaling and how much will the increase be? Incorrect autoscale parameters can cause uncontrolled growth of allocated capacities which comes at a serious price. To avoid this, you should test your autoscale configuration with one of the specialized tools, such as the PFLB platform.

What Type of Performance Testing Do You Need?
Find out on a free consultation with our experts.

6. Control autoscaling

One of the advantages of the cloud is its flexibility in scaling: an increase of resources available to the company takes a few moments and can be automated. Automated scaling is marketed by large providers as an option that helps cut costs, as your system receives exactly as many resources as it needs at any given point in time. However, we recommend a differentiated approach to this service.

In some cases, a significant increase in the consumed resources indicates the malfunctioning of the software. Businesses can incur additional costs for critical systems which are needed 24/7, but if the overuse is caused by an app in the testing environment or an auxiliary virtual machine, it should not cost you a fortune.

7. Review support costs

Almost every cloud service provider offers various technical support plans. Check how your employees use the service’s technical consultants’ support over the past few months–you may be paying for services no one uses. For a small business or a young startup, free support should be enough–it works rather well with all the providers.

8. Use spot and reserved instances

When cloud services have no use for free resources, they sell them at very competitive prices. Such spot instances are unpredictable and unlikely to be suitable for critical or resource-intensive tasks, but if you need to run a small batch task, try looking out for a hot offer.

Reserved instances are the complete opposite of spot instances. They are your stock–your prepaid cloud power slots that you have to use in a specified time frame. They usually allow only certain tasks and have limitations on accessibility and the area of use. However, if you regularly run the same load in the cloud, prepaid instances will help to save: discounts can reach 75%.

9. Optimize licensing costs

Since software in the cloud has to be paid for, it makes sense to look for ways to reduce these costs, too. For example, Microsoft Azure has a hybrid licensing program for servers and databases, while AWS offers different versions of Amazon Machine Image licenses through its marketplace.

10. Change your approach to cost management

Technical tools to optimize cloud costs are not the only way: there are organizational measures to be taken, too. The bigger the company, the more employees can run tasks in the cloud and thus influence the bill from the provider. To manage cloud costs, you need to be able to relate them to company departments and specific employees. You can use tags and other attribute tools provided by cloud services. Each task performed should be considered and monitored within the budget available to the responsible staff member.

Cloud cost management should be in the focus of your attention both if you work for a small startup or a transnational corporation. Proactive management of the cloud environment allows you to get the most out of it, effectively using every dollar paid. In this article, we have collected the most obvious ways to optimize your expenses in the cloud, but there is no limit to perfection in this matter. To achieve the best results, study the offers of providers closely, combine cloud services, optimize the load–and approach the process creatively, not dogmatically.

Table of contents
Let us know about your needs
We can provide multiple performance testing services and a lot more than that if the situation needs a far more complex approach.
Get a quote You’ll hear back from our tech account manager in one day if not sooner

Related insights in blog articles

Explore what we’ve learned from these experiences
11 min read

Roles and Responsibilities of Performance Tester

performance testing roles and responsibilities in a nutshell
Apr 9, 2024

The core of efficient performance testing is an experienced, certified and well-structured team of professionals, who have already worked in similar projects, and learned all the peculiarities of QA testing types, and protocols.  If consciously chosen, they can evaluate a product, test its behavior under a load, check its response time, etc., and thus, empower […]

11 min read

Tips for Efficient Web Application Performance Testing

tips for efficient web application performance testing
Apr 4, 2024

Performance testing is one of the most challenging components of web application testing. But it is worth it: if done right, performance testing can forecast product behavior and its response to user’s actions with an impressive amount of detail and precision. Irrelevant web performance test data or wrong metrics chosen during testing cost companies a lot of money and effort, while not monitoring your web application performance at all can lead directly to a crash, say, on Black Friday, if you are not prepared to handle an increased number of concurrent users. Business or product owners needn’t know exactly how to performance test a website, but it’s useful to have a basic understanding of procedures that you pay for. From this post, you can learn what web application performance testing is, when it should be done, and how. Then, you will be able to make an informed choice whether to hire testing specialists or run testing sessions on your own.

15 min read

Top Tools for Developers in 2024

top developers tools
Apr 2, 2024

The ratings of the best software development tools are time-sensitive: new tools emerge every now and then. Monitoring and mastering them is a full-time job, and sometimes a waste of time, too, since some oldies but goldies remain chosen by the team.  Having done all the hard choices for you, we are sharing our list […]

4 min read

Big Data Europe 2024

software testing conferences preview
Mar 22, 2024

Big Data Conference Europe is a four-day conference with technical talks in the fields of AI, Cloud and Data. The conference will take place both on-site and online, providing the opportunity for everyone to participate in their preferred format.

  • Be first to know

    Once a month we’ll be sending you a letter with all the useful insights that we could find and analise