Вход на сайт

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

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

Azure Database for MySQL failover impact on availability

Дата публикации: 07-09-2020 15:06:52

In that test I would like to measure the impact of a failover of an Azure Database for MySQL. Unfortunately there is no mechanism to force the crash of the Azure Database for MySQL instance. So how can I test how long it takes to failover and what is the impact on a server activity. ...continue reading \"Azure Database for MySQL failover impact on availability\"
Azure Database for MySQL failover impact on availability appeared first on MariaDB.org


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

In that test I would like to measure the impact of a failover of an Azure Database for MySQL. Unfortunately there is no mechanism to force the crash of the Azure Database for MySQL instance. So how can I test how long it takes to failover and what is the impact on a server activity. Fortunately there are other circumstances where a switchover will be triggered by Azure.
For example if you decide to scale up your instance it will require (going from 2 vCores to 4 vcores in this case) a restart of the Azure MySQL container. This restart will also happen without any action on your side when Azure decides to upgrade your MySQL version.

How does this switchover behave under an heavy workload. To generate an heavy workload we will use sysbench with the report interval mechanism that allows to continuously track transactions per second(tps).

We will add 2 extra options when running sysbench:
--mysql-ignore-errors=all : this will ignore connection errors and trigger a reconnection. The normal behavior of sysbench is to not use the failed connection anymore
--db-ps-mode=disable : this is to disable prepared statement as it is incompatible with reconnection

To see if we get benefit from a scaleup We will use a workload that is above what can be handled by the initial server(2 vCores). The scale up aim is to have a new server that can sustain the initially required level of activity. A real life situation would be to scale the MySQL database that is behind your ecommerce/Magento website when seasonal high traffic happens.
scaleup tps impact

What we see here is a positive result :
- The scale up took place in a reasonable amount of time (around 10s)
- The new scaled up server having more vCores(4 vCores) was able to offer a higher number of transactions per second(almost twice).

Scaling up only when the monitored activity requires it can greatly reduce the cost of ownership of an Azure based platform. This can be accomplished in a very simple way.
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

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

#Наименование новостиТональностьИнформативностьДата публикации
1Scaling up or scaling down Azure Database for MySQL for cost optimization02.9808-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
7MySQL and MariaDB High Availability vs. Disaster Recovery: What’s the Difference (and Why It Matters)06.4508-08-2026
8Using RDS Proxy with Amazon RDS Multi-AZ DB instance deployment to improve planned failover time06.8309-12-2024
9The Failover Brownout: Rethinking High Availability in MySQL Group Replication04.0615-06-2026
10High availability and resiliency in databases with MaxScale03.7926-03-2024

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