Task
A storage cluster at two sites needed two minutes to switch to the backup controller after a controller failure. I brought it down to 12 seconds, a condition of a customer delivery.
A storage cluster at two sites needed two minutes to switch to the backup controller after a controller failure. I brought it down to 12 seconds, a condition of a customer delivery.
The metro cluster is two storage systems at two sites with four controllers and an external arbiter, a third machine that helps tell a site failure from a lost link. Block data is mirrored synchronously between the sites. A planned switchover with both sides up worked, but under load on dozens of volumes one failed controller turned into a long chain of waits.
Several steps of the failover path kept trying to reach a neighbour controller that was already gone. The virtual IP addresses that servers connect to came up one by one and added more time.
I profiled the failover path with cProfile, which shows where time goes, read the profile as a flame graph and matched the waits with the logs of the service that serves volumes to servers and the vdbench load. Then I split the path into actions the surviving side can do alone and the few that need the neighbour's answer. The neighbour's availability is now checked once per transition, and independent virtual IPs come up in parallel.
Failover and recovery after a controller failure under load on the load test stand.
Failover went from 120 seconds to 12. The fixes went into two product release branches, and the metro cluster was ready for the delivery of four pairs of storage systems.