-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancing Hub Recovery: Reworking DRPC State Rebuilding Algorithm
This commit tackles hub recovery issues by reworking the algorithm responsible for rebuilding the DRPC state. The changes align with the following expectations: 1. Stop Condition for Both Failed Queries: If attempts to query 2 clusters result in failure for both, the process is halted. 2. Initial Deployment without VRGs: If 2 clusters are successfully queried, and no VRGs are found, proceed with the initial deployment. 3. Handling Failures with S3 Store Check: - If 2 clusters are queried, 1 fails, and 0 VRGs are found, perform the following checks: - If the VRG is found in the S3 store, ensure that the DRPC action matches the VRG action. If not, stop until the action is corrected, allowing failover if necessary (set PeerReady). - If the VRG is not found in the S3 store and the failed cluster is not the destination cluster, continue with the initial deployment. 4. Verification and Failover for VRGs on Failover Cluster: If 2 clusters are queried, 1 fails, and 1 VRG is found on the failover cluster, check the action: - If the actions don't match, stop until corrected by the user. - If they match, also stop but allow failover if the VRG in-hand is a secondary. Otherwise, continue. 5. Handling VRGs on Destination Cluster: If 2 clusters are queried successfully and 1 or more VRGs are found, and one of the VRGs is on the destination cluster, perform the following checks: - Continue with the action only if the DRPC and the found VRG action match. - Stop until someone investigates if there is a mismatch, but allow failover to take place (set PeerReady). 6. Otherwise, default to allowing Failover: If none of the above conditions apply, allow failover (set PeerReady) but stop until someone makes the necessary change. Signed-off-by: Benamar Mekhissi <bmekhiss@ibm.com>
- Loading branch information
Benamar Mekhissi
committed
Dec 19, 2023
1 parent
b8bedb9
commit d8edb50
Showing
6 changed files
with
414 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.