Skip to content

Commit e199dec

Browse files
camdencheekenriquegh
authored andcommitted
add gitserver startup probe (#652)
This adds a startup probe to gitserver so that it's not immediately killed while it's starting up and migrating the on-disk format for repos.
1 parent e41e9ca commit e199dec

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

charts/sourcegraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Use `**BREAKING**:` to denote a breaking change
99
## Unreleased
1010

1111
- Fix Pod Disruption Budget for sourcegraph-frontend
12+
- Added a startup probe to the gitserver statefulset to give it time to run the on-disk migration from repo names to repo IDs
1213

1314
## 5.10.0
1415

charts/sourcegraph/templates/gitserver/gitserver.StatefulSet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ spec:
5656
{{- end }}
5757
{{- include "sourcegraph.openTelemetryEnv" . | nindent 8 }}
5858
terminationMessagePolicy: FallbackToLogsOnError
59+
# Temporary: when migrating from repo names to repo IDs on disk,
60+
# gitserver can take a little while to start up. To avoid killing the
61+
# pod because of a failed liveness probe, we give it 2 minutes to start up.
62+
startupProbe:
63+
tcpSocket:
64+
port: rpc
65+
failureThreshold: 120
66+
periodSeconds: 1
5967
livenessProbe:
6068
initialDelaySeconds: 5
6169
tcpSocket:

0 commit comments

Comments
 (0)