Make deployments atomic
Closed this issue · 2 comments
alphadose commented
Delete the container and cleanup the environment if anything goes wrong including mongo and redis failures
karan0299 commented
@alphadose @supra08 please provide elaborate description
supra08 commented
Sorry, missed the previous tags 😅 Atomic deployments means that there is no application downtime. Either the application is deployed or it is not deployed(in case of failure). There is no mid state. So this issue's solution handles a part of that by deleting instances of its existence from redis as well as mongo in case of error. And then start the process all over again. There is a pull request for this issue already open https://github.com/sdslabs/SWS/pull/84. Have a look. @karan0299