chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

Restore via single command (A2HA) #4922

Open punitmundra opened 3 years ago

punitmundra commented 3 years ago

Aha! Link: https://chef.aha.io/epics/SH-E-243

punitmundra commented 3 years ago

With Current restore, we have to stop all the instance of automate and chef-server manually. Post that we trigger the restore command.

The purpose of this task is to simply the restore steps. In the current scenario, If we want to restore the backup, we need to follow these steps.

To make restore works we need to close all the DB connection, i.e. the reason we are stopping all the services. FE node are not aware of the other node details i.e. the reason we can not run the restore command alone (in A2HA). Note: In case of automate(ES and PG are on same machine) we don't stop all the service manually, it will taken care automatically.

One Alternative approach is that we can write the script. which we can execute from the bastion host. script first stop all the services on all the FE nodes and then it will trigger the restore command from one of the automate-FE node.

Acceptance Criteria

Definition of Done

Note :- Post this Implementation, Customer may raise the question that, why Only Restore command support from bastion not the create backup.