Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce downtime window when deploy_with_maintenance #884

Open
dacook opened this issue Jun 13, 2023 · 1 comment
Open

Reduce downtime window when deploy_with_maintenance #884

dacook opened this issue Jun 13, 2023 · 1 comment

Comments

@dacook
Copy link
Member

dacook commented Jun 13, 2023

Description

# This playbook is meant for deployments that introduce big changes and thus
# require enabling maintenance mode and refreshing the cache.

However, it shuts down all services for the entire deploy role, which can sometimes take a long time (I think 20 mins?)

The first half is mostly setup (preparing ruby, gems, node, etc). So I think we only need to shut down for the second half of that role, which could save a lot of time.

Acceptance Criteria & Tests

Run the playbook before, and time how long the site is down for (or just review the playbook log)

Run it after. The site should be usable up until the maintenance mode, and again after. It should be unusable for a shorter time.

@dacook
Copy link
Member Author

dacook commented Jun 13, 2023

I just checked one example from a deployment for a single server.
It took 5 mins, but the first three mins were setup, and it only took two minutes after task check database status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: All the things 💤
Development

No branches or pull requests

1 participant