Skip to content

Commit

Permalink
Improve health check
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Mar 12, 2024
1 parent e40d34b commit 47661b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions k8s/dataset-knowledge-graph/graphdb-stateful-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ spec:
requests:
memory: 1.5Gi
limits:
memory: 12Gi
memory: 13Gi
env:
- name: GDB_JAVA_OPTS
value: |
-Dgraphdb.workbench.cors.enable=true
-Dgraphdb.engine.parallel-import=false
-Dhealth.max.query.time.seconds=60
- name: GDB_HEAP_SIZE
value: 9g
volumeMounts:
Expand All @@ -35,10 +36,11 @@ spec:
- containerPort: 7200
livenessProbe:
httpGet:
path: /repositories/dataset-knowledge-graph-imports/health
path: /repositories/dataset-knowledge-graph-imports/health?passive
port: 7200
initialDelaySeconds: 60
initialDelaySeconds: 200
periodSeconds: 5
timeoutSeconds: 60
imagePullSecrets:
- name: ghcr
volumeClaimTemplates:
Expand Down
12 changes: 7 additions & 5 deletions k8s/graphdb/graphdb-stateful-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,32 @@ spec:
spec:
containers:
- name: database
image: ontotext/graphdb:10.4.1
image: ontotext/graphdb:10.5.0
resources:
requests:
memory: 1.5Gi
limits:
memory: 12Gi
memory: 8Gi
env:
- name: GDB_JAVA_OPTS
value: |
-Dgraphdb.workbench.cors.enable=true
-Dgraphdb.engine.parallel-import=false
-Dhealth.max.query.time.seconds=60
- name: GDB_HEAP_SIZE
value: 9g
value: 6g
volumeMounts:
- mountPath: "/opt/graphdb/home"
name: data
ports:
- containerPort: 7200
livenessProbe:
httpGet:
path: /repositories/registry/health
path: /repositories/registry/health?passive
port: 7200
initialDelaySeconds: 60
initialDelaySeconds: 100
periodSeconds: 5
timeoutSeconds: 60
imagePullSecrets:
- name: ghcr
volumeClaimTemplates:
Expand Down

0 comments on commit 47661b7

Please sign in to comment.