sourcegraph/cmd
Noah S-C 746a323e26
autoupgrade: use heartbeats to detect crashed autoupgrade attempts (#53859)
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

![image](https://github.com/sourcegraph/sourcegraph/assets/18282288/5e79817a-10d9-452f-bcab-e125fc8a8333)
2023-06-21 15:05:13 +00:00
..
blobstore bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
frontend autoupgrade: use heartbeats to detect crashed autoupgrade attempts (#53859) 2023-06-21 15:05:13 +00:00
github-proxy bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
gitserver wrexec: handle unsetting GitRecorder config (#53772) 2023-06-21 12:21:35 +00:00
loadtest bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
migrator release: sourcegraph@5.0.6 (#53520) 2023-06-15 00:11:59 +00:00
repo-updater bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
searcher app: initial work to get building on Windows (#52384) 2023-06-19 14:53:07 -07:00
server bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
sitemap sitemap: fix compile error after update to NewRetryPolicy (#51926) 2023-05-15 12:52:57 +00:00
sourcegraph-oss Running binaries with SANITY_CHECK=true immediately exits with a code zero (#52186) 2023-05-19 12:30:11 +00:00
symbols internal/search: add zoekt logic for scip-ctags (#52387) 2023-06-14 16:30:50 -04:00
worker bzl: make all container_structure_test exclusive (#53502) 2023-06-14 17:17:20 +00:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.