Right now when we clone a host the sequence (after copying the data) is:
- start mariadb and replication on the source
- wait until the source gets green
- repool the source (which takes up to 1h)
- start mariadb and replication on the target
- wait for the target to get green
- repool the target (if it applies).
This is not very optimal as we can start both at the same time, and then repool both at the same time (or if we want to, one at the time, but by the time the source has repooled, the target would have caught up with replication).
We want to rearrange it as:
- start mariadb and replication on the source
- start mariadb and replication on the target
- wait until the source gets green
- repool the source (which takes up to 1h)
- wait for the target to get green
- repool the target (if it applies).