In the following section, we provide answers to questions that are most frequently asked about DRBD Architecture.
Questions
29.14.3.1: Is an Active/Active option available for MySQL with DRBD?
29.14.3.2: What MySQL storage engines are supported with DRBD?
29.14.3.3: How long does a failover take?
29.14.3.4: How long does it take to resynchronize data after a failure?
29.14.3.5: Are there any situations where you shouldn't use DRBD?
29.14.3.6: Are there any limitations to DRBD?
29.14.3.7: Where can I find more information on sample architectures?
Questions and Answers
29.14.3.1: Is an Active/Active option available for MySQL with DRBD?
Currently, MySQL does not support Active/Active configurations using DRBD “out of the box”.
29.14.3.2: What MySQL storage engines are supported with DRBD?
All of the MySQL transactional storage engines are supported by DRBD, including InnoDB and Falcon. For archived or read-only data, MyISAM or Archive can also be used.
29.14.3.3: How long does a failover take?
Failover time is dependent on many things, some of which are configurable. After activating the passive host, MySQL will have to start and run a normal recovery process. If the InnoDB log files have been configured to a large size and there was heavy write traffic, this may take a reasonably long period of time. However, under normal circumstances, failover tends to take less than a minute.
29.14.3.4: How long does it take to resynchronize data after a failure?
Resynchronization time depends on how long the two machines are out of communication and how much data was written during that period of time. Resynchronization time is a function of data to be synced, network speed and disk speed. DRBD maintains a bitmap of changed blocks on the primary machine, so only those blocks that have changed will need to be transferred.
29.14.3.5: Are there any situations where you shouldn't use DRBD?
See When Not To Use DRBD.
29.14.3.6: Are there any limitations to DRBD?
See DRBD limitations (or are they?).
29.14.3.7: Where can I find more information on sample architectures?
For an example of a Heartbeat R1-compatible resource configuration involving a MySQL database backed by DRBD, see DRBD User's Guide.
For an example of the same DRBD-backed configuration for a MySQL database in a Heartbeat CRM cluster, see DRBD User's Guide.

User Comments
There are two limits with DRBD we have noticed.
Firstly, write latency is a bit higher. This can be tuned by selecting which DRBD protocol to use where A is fastest and C is slowest but has highest integrity. But this is hardly noticeable.
Secondly there is the bottleneck of the network linking your serves. Eg, a dedicated 1000baseT cannot exceed about 100MB/sec write. Read is unaffected. This can effect restoring backups and large data imports.
Add your own comment.