

Azure Database for MySQL failover impact on availability
source link: https://serge.frezefond.com/2020/09/azure-database-for-mysql-failover-impact-on-availability/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Azure Database for MySQL failover impact on availability – Serge Frezefond 's blog
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.
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/369177Opens in a new window
Published on September 7, 2020September 7, 2020Author administrateurCategories mysql
Recommend
-
41
You may have heard about the term “failover” in the context of MySQL replication. Maybe you wondered what it is as you...
-
37
By:Alejandro Cobar | Last Updated: 2019-01-17 | | Related Tips:More > Database Mirroring Proble...
-
33
By:Alejandro Cobar | Last Updated: 2019-02-06 | | Related Tips:More > Database Mirroring Proble...
-
8
Load balance read replicas using ProxySQL in Azure Database for MySQL%3CLINGO-SUB%20id%3D%22lingo-sub-880042%22%20slang%3D%22en-US%22%3ELoad%20balance%20read%20replicas%20using%20ProxySQL%20in%20Azure%20Database%20for%20MySQL%3C%2FLINGO-SUB%3E%3...
-
8
Connecting efficiently to Azure Database for MySQL with ProxySQL%3CLINGO-SUB%20id%3D%22lingo-sub-1279842%22%20slang%3D%22en-US%22%3EConnecting%20efficiently%20to%20Azure%20Database%20for%20MySQL%20with%20ProxySQL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%2...
-
17
MariaDB – a little hack – Serge Frezefond 's blogAzure Database for MySQL is a PaaS offer. It has a specific architecture that relies on a gateway. This has a huge advantage in the way it handle High availability. If a server fails it will a...
-
8
Where x is >= 22 😉 The Problem There are few things your data does not like. One is water and another is fire. Well, guess what:
-
7
Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services. Start free today ...
-
6
Auto-failover groups for Azure SQL Hyperscale now in preview Published J...
-
3
Initiate Failover of Azure Storage Account Azure Storage is a cloud service that provides scalable, secure, cost-effective storage solutions for various data types. However, data stored in Azure Storage may still be vu...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK