HomeSoftware Heritage

install: Keep relay available while upgrading (#615)

Description

install: Keep relay available while upgrading (#615)

This continues on the ideas from #607. By "downtime" here I mean "not accepting events" - web, smtp and background processes are out of scope.

This PR adds a --minimize-downtime option to install.sh. This options changes the behaviour of the script by:

  1. keeping nginx and relay running until the very end,
  2. disabling cleanup on exit and failure,
  3. explicitly reloading nginx configuration,
  4. and starting the whole cluster at the end.

The results are promising: no downtime if relay version doesn't change, and only a second when it does. So far this was only tested with a curl loop, so I'm still not sure if Relay flushes the events to Sentry before getting recreated by $dc up.

Details

Provenance
Tomasz Kontusz <tomasz.kontusz@gmail.com>Authored on Aug 27 2020, 5:02 PM
GitHub <noreply@github.com>Committed on Aug 27 2020, 5:02 PM
olasdPushed on Dec 15 2020, 11:43 AM
Parents
R206:704e4c3b5b73: meta(issues): Add issue templates (#645)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed R206:627c366f2737: install: Keep relay available while upgrading (#615) (authored by Tomasz Kontusz <tomasz.kontusz@gmail.com>).Aug 27 2020, 5:02 PM