Skip to content

Commit f787cf1

Browse files
authored
Update lsif-server deployment to support worker metrics. (sourcegraph#393)
1 parent b5eaffb commit f787cf1

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

base/lsif-server/lsif-server.Deployment.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,23 @@ spec:
3636
name: lsif-server
3737
livenessProbe:
3838
httpGet:
39-
path: /ping
40-
port: http
39+
path: /healthz
40+
port: server
4141
scheme: HTTP
4242
initialDelaySeconds: 60
4343
timeoutSeconds: 5
4444
readinessProbe:
4545
httpGet:
46-
path: /ping
47-
port: http
46+
path: /healthz
47+
port: server
4848
scheme: HTTP
4949
periodSeconds: 5
5050
timeoutSeconds: 5
5151
ports:
5252
- containerPort: 3186
53-
name: http
53+
name: server
54+
- containerPort: 3187
55+
name: worker
5456
resources:
5557
limits:
5658
cpu: "2"

base/lsif-server/lsif-server.Service.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ metadata:
77
name: lsif-server
88
spec:
99
ports:
10-
- name: http
10+
- name: server
1111
port: 3186
12-
targetPort: http
12+
targetPort: server
13+
- name: worker
14+
port: 3187
15+
targetPort: worker
1316
selector:
1417
app: lsif-server
1518
type: ClusterIP

docs/configure.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,12 +472,13 @@ To enable this, you must first purchase Lightstep and create a project correspon
472472
Sourcegraph supports specifying a custom Redis server for:
473473
474474
- caching information (specified via the `REDIS_CACHE_ENDPOINT` environment variable)
475-
- storing information (session data) (specified via the `REDIS_STORE_ENDPOINT` environment variable)
475+
- storing information (session data and job queues) (specified via the `REDIS_STORE_ENDPOINT` environment variable)
476476
477477
If you want to specify a custom Redis server, you'll need specify the corresponding environment variable for each of the following deployments:
478478
479479
- `sourcegraph-frontend`
480480
- `repo-updater`
481+
- `lsif-server`
481482
482483
## Configure custom PostgreSQL
483484

0 commit comments

Comments
 (0)