Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d13843a99 | |||
| 7a33250d98 | |||
| d94ad4a0dc | |||
| 791e745865 | |||
| 9fa72af1bf | |||
| abbba17dd0 |
@@ -6,6 +6,6 @@ resources:
|
|||||||
- bot.yaml
|
- bot.yaml
|
||||||
images:
|
images:
|
||||||
- name: gitea.czernobog.pl/gitea/conjurer-librarian
|
- name: gitea.czernobog.pl/gitea/conjurer-librarian
|
||||||
newTag: 5d321f2f
|
newTag: 40605b95
|
||||||
- name: gitea.czernobog.pl/gitea/conjurer-bot
|
- name: gitea.czernobog.pl/gitea/conjurer-bot
|
||||||
newTag: 5d321f2f
|
newTag: 8e18071b
|
||||||
|
|||||||
+11
-2
@@ -10,6 +10,11 @@ spec:
|
|||||||
metadata: { labels: { app: librarian } }
|
metadata: { labels: { app: librarian } }
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets: [{ name: gitea-registry }]
|
imagePullSecrets: [{ name: gitea-registry }]
|
||||||
|
# On SIGTERM the librarian checkpoints the running search and exits within
|
||||||
|
# CONJURER_LIBRARIAN_GRACEFUL_TIMEOUT (default 45s). Give k8s enough grace
|
||||||
|
# to let that finish before it SIGKILLs - otherwise a long scan's checkpoint
|
||||||
|
# is cut short and the search restarts from scratch instead of resuming.
|
||||||
|
terminationGracePeriodSeconds: 60
|
||||||
containers:
|
containers:
|
||||||
- name: librarian
|
- name: librarian
|
||||||
image: gitea.czernobog.pl/gitea/conjurer-librarian:e243777e
|
image: gitea.czernobog.pl/gitea/conjurer-librarian:e243777e
|
||||||
@@ -33,8 +38,12 @@ spec:
|
|||||||
- { name: doi, mountPath: /doi, readOnly: true }
|
- { name: doi, mountPath: /doi, readOnly: true }
|
||||||
- { name: state, mountPath: /lib_temp_files }
|
- { name: state, mountPath: /lib_temp_files }
|
||||||
resources:
|
resources:
|
||||||
requests: { cpu: "100m", memory: "256Mi" }
|
requests: { cpu: "100m", memory: "512Mi" }
|
||||||
limits: { cpu: "1", memory: "1Gi" }
|
# Headroom bump: the work-queue OOM is fixed in code, but a deep
|
||||||
|
# search still pulls up to 15000 Crossref records into RAM and the
|
||||||
|
# accumulating result JSONs are loaded whole. 2Gi gives margin so a
|
||||||
|
# big search isn't OOM-killed. Tune down if the node is tight.
|
||||||
|
limits: { cpu: "1", memory: "2Gi" }
|
||||||
volumes:
|
volumes:
|
||||||
- name: doi
|
- name: doi
|
||||||
nfs:
|
nfs:
|
||||||
|
|||||||
Reference in New Issue
Block a user