Sample Header Ad - 728x90

Is Azure Managed Disks enough to ensure high-durability for a database?

0 votes
1 answer
117 views
I want to set up a database in a high durability set-up on Azure. I've previously relied on DB-as-a-service offerings, but can't do that in this case, so I'd like your feedback on the plan below. Is this enough to ensure reliable storage of data? 1) An Azure Web App takes in metric data from the web, does some minor processing and sampling, and sends the data in batches to VM2. 2) VM2 runs the Clickhouse database, and stores data on an Azure Managed Disk 3) Some periodical job takes snapshots of the disk using Clickhouse built-in backup functionality and stores them to cold storage The periodical backup is meant to mitigate human error, i.e. accidentally running "DROP TABLE xx" on the wrong data. The big question is if managed disks are an acceptable substitute for database replication, to ensure data durability. Azure Managed Disks are advertised as being very durable forms of storage, with built in triple-redundant replication. They are advertised as good for database use. It seems that this should be enough to take away any concerns of data loss due to hardware failure. Is this correct? Do you see any potential problems with this? The recovery plan is that if VM2 fails, some monitoring process catches this and spins up a new VM2 instance attached to the same managed disk. The Web App similarly restarts if it fails. I understand that this setup isn't high-availability, if a VM fails there will be some window of time before it is able to store new data. This is acceptable to me. But I want to ensure that data that gets stored will not be lost, i.e. is durably stored with very high probability. Is this enough to ensure that? Do you see any problems?
Asked by ServableSoup (3 rep)
Apr 5, 2021, 11:50 AM
Last activity: Apr 5, 2021, 12:27 PM