Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Scaling up or scaling down Azure Database for MySQL for cost optimization

Дата публикации: 08-09-2020 17:53:44

In the previous test we looked at what happened when we scaleup an Azure Database for MySQL server to sustain an heavy workload. We saw that the service interruption was minimal. Azure Database for MySQL being a fully managed DBaaS being able to scale up the service only when required by the workload is a ...continue reading \"Scaling up or scaling down Azure Database for MySQL for cost optimization\"
Scaling up or scaling down Azure Database for MySQL for cost optimization appeared first on MariaDB.org


Основное содержимое страницы с новостью.

In the previous test we looked at what happened when we scaleup an Azure Database for MySQL server to sustain an heavy workload. We saw that the service interruption was minimal. Azure Database for MySQL being a fully managed DBaaS being able to scale up the service only when required by the workload is a way to optimize cost of ownership.

Scaling down is the other good way to reduce the cost of ownership. The ability to rapidly reduce the size of the machine to adjust to the real workload is critical for optimal cost management. Most real life services have seasonal spike of activity (during the day, the week or the year) and being able to adjust machine power efficiently is a real source of economy.

We will use the same protocol as we did before. wW will use sysbench to inject activity and we will add an extra options when running sysbench:
--rate=100 : This will limit the number of transactions executed per second. By default sysbench runs with rate=0 which means injecting as much transaction as possible through each thread without any think time. This does not correspond to real life user behavior but that is the best way to saturate a server.

The result looks like :
scale down tps impact

After the change of pricing tier from 16 vCores to 2 vCores the transaction rate remains the same as it is sustainable by both configurations. But what is the impact of the cost of ownership. By going from a 16 vCores to 2 vCores configuration the pricing goes from an estimated 1150$/month to 150$/month. This is more than 7 times cheaper cost of ownership.

This scaling operation can also be automated with Azure Runbooks an Triggers :
https://techcommunity.microsoft.com/t5/azure-database-support-blog/how-to-auto-scale-an-azure-database-for-mysql-postgresql/ba-p/369177

important remark :
When you decide to scale down your instance you should not look only to CPU consumption. When you change the number of vCores you change the amount of RAM. For Azure Database for MySQL each vCores adds 5G of RAM. As MySQL relies on caching changing the hit ratio for the cache can degrade performance more than CPU only arithmetic would predict.

Do not forget your replicas 😉 If you use multiple read replicas you can reduce cost by resizing replicas or even reducing the number of replicas depending on the workload.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Azure Database for MySQL failover impact on availability02.9207-09-2020
2Using ProxySQL with Azure Database for MySQL / MariaDB – a little hack03.4210-06-2020
3ProxySQL connection redirection experiment with Azure database for MySQL/MariaDB. 1/203.7321-07-2020
4ProxySQL connection redirection experiment with Azure database for MySQL/MariaDB. 2/204.6224-07-2020
5ProxySQL connection redirection experiment with Azure database for MySQL/MariaDB. 3/307.4724-07-2020
6How to build a ProxySQL compatible with Azure Database for MySQL / MariaDB –06.9812-06-2020
7High availability and resiliency in databases with MaxScale03.7926-03-2024
8The lost art of Database Server Initialization.04.4406-09-2021
9Efficient MySQL Performance In 10 Sentences09.9209-11-2024
10CPU-bound sysbench on a large server: Postgres, MySQL and MariaDB05.5304-04-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 2.98. Источник: mariadb.org.