mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
If a frontend crashes due to OOM or any other reason, in a way that it fails to set the `success` column in `upgrade_logs` to `false`, then all frontends will block trying to claim the autoupgrade lock until the status is manually set in postgres (or the table is truncated). With a heartbeat mechanism, we can allow claiming the lock if the last lock hasnt received a heartbeat in a certain amount of time (here we're giving 6 missed heartbeats space). ## Test plan Added unit tests for the claim query, tested in docker-compose  |
||
|---|---|---|
| .. | ||
| blobstore | ||
| frontend | ||
| github-proxy | ||
| gitserver | ||
| loadtest | ||
| migrator | ||
| repo-updater | ||
| searcher | ||
| server | ||
| sitemap | ||
| sourcegraph-oss | ||
| symbols | ||
| worker | ||
| README.md | ||
This directory contains Sourcegraph services and binaries.
When a services is added, removed, or when a service's dependencies change, update our architecture diagram.