Skip to content

Commit

Permalink
Merge pull request #3046 from alphagov/msw/restart-an-app
Browse files Browse the repository at this point in the history
Document restarting an app
  • Loading branch information
barrucadu committed Mar 30, 2021
2 parents 2aebc0a + 8787c91 commit 73ffecb
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion source/manual/restart-application.html.md
Expand Up @@ -6,6 +6,32 @@ layout: manual_layout
section: Deployment
---

To restart an application go to the Deploy app Jenkins job in [AWS](https://deploy.blue.production.govuk.digital/job/Deploy_App/build), choose your app, the **[current release]** and select `app:hard_restart`.
### Restarting one instance of an app

To restart an application on one machine, SSH into the machine then
run:

```bash
sudo service <app> restart
```

This will terminate any active requests to that instance of the app,
and so may cause a few errors. Other instances of the app on
different machines will not restart.

### Restarting all instances of an app

To restart an application on all machines:

1. Go to the [Deploy_App Jenkins job][]
- For `TARGET_APPLICATION`, choose the app to restart
- For `DEPLOY_TASK`, choose `deploy:with_hard_restart`
- For `TAG`, choose the [current release][]
2. Click "Build"

All the instances of the app will restart at roughly the same time, so
any pages served by the app will be briefly unavailable, and there
will be a spike of 5xx errors.

[Deploy_App Jenkins job]: https://deploy.blue.production.govuk.digital/job/Deploy_App/build
[current release]:https://release.publishing.service.gov.uk/applications

0 comments on commit 73ffecb

Please sign in to comment.