Skip to main content

Restart backend service

Overview​

In some cases we want to restart the backend service in a specific region, for example to force it to run some logic that only runs when the service starts (like fetching secrets or performing initialization actions on the DB) or if something in the service is stuck and causing issues.

Restarting the service in AWS​

  • Log in to AWS production account with 'DeveloperAccess' role
  • Go to Elastic Container Service (ECS) in the correct region
  • Select the 'backend' cluster
  • Select the 'backend' service
  • Click 'Update service'
  • Check 'Force new deployment'
  • Click 'Update' (at the bottom)
  • Wait patiently as the service restarts (can take several minutes)

Restarting the service in GCP​

  • Go to Cloud Run services page in GCP portal in the project for the relevant region and click the service to open its details. For example https://console.cloud.google.com/run?project=backend-us-east4
  • Click 'Edit & deploy new revision' (in the toolbar at the top of the page)
  • Click 'Deploy' (at the bottom)
  • Wait patiently as the service restarts (can take several minutes)