Skip to content

Commit f879f6c

Browse files
authored
add gitserver startup probe (#249)
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 4b92ae7 commit f879f6c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

base/sourcegraph/gitserver/gitserver.StatefulSet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ spec:
3737
value: http://$(OTEL_AGENT_HOST):4317
3838
image: index.docker.io/sourcegraph/gitserver:6.0.0@sha256:aec9bf6993c243a283109104cd7c44be3c85680b77e3e8be0c5fba8f01a3bd35
3939
terminationMessagePolicy: FallbackToLogsOnError
40+
# Temporary: when migrating from repo names to repo IDs on disk,
41+
# gitserver can take a little while to start up. To avoid killing the
42+
# pod because of a failed liveness probe, we give it 2 minutes to start up.
43+
startupProbe:
44+
tcpSocket:
45+
port: rpc
46+
failureThreshold: 120
47+
periodSeconds: 1
4048
livenessProbe:
4149
initialDelaySeconds: 5
4250
tcpSocket:

0 commit comments

Comments
 (0)