Page MenuHomePhabricator

allow zotero container nodejs server to define the amount of heap used instead of the fixed limit of 1.7Gi
Closed, ResolvedPublic

Description

we had a briefly outage of one minute when zotero was unresponsive, our current believe is that nodejs heap size was filled up and hence the server wasn't responding

https://grafana.wikimedia.org/d/000000620/xxxx-zotero-debugging-kubernetes?orgId=1&from=1547060027804&to=1547062295521

In order to change that we need to change the docker image to allow an adjustable heap size and modify also the helm chart to allow to define the max heap size which should be Pod Mem Limit size - X, where X is the amount of RAM the nodejs app is using besides heap.

Event Timeline

Change 483395 had a related patch set uploaded (by Fsero; owner: Fsero):
[mediawiki/services/zotero@master] Added NODE_V8_HEAP_SIZE_IN_MB env variable and made node honor it.

https://gerrit.wikimedia.org/r/483395

Change 483398 had a related patch set uploaded (by Fsero; owner: Fsero):
[operations/deployment-charts@master] Added defaults of node heap size to match the new one introduced.

https://gerrit.wikimedia.org/r/483398

Change 483395 merged by jenkins-bot:
[mediawiki/services/zotero@master] Added NODE_V8_HEAP_SIZE_IN_MB env variable and made node honor it.

https://gerrit.wikimedia.org/r/483395

fsero moved this task from Stalled 🐌 to Incoming 🐫 on the serviceops board.
fsero moved this task from Incoming 🐫 to Doing 😎 on the serviceops board.
akosiaris triaged this task as Medium priority.Jan 14 2019, 3:06 PM
akosiaris subscribed.

An image that allows overriding the node heap has now been deployed.

Change 483398 abandoned by Fsero:
Added defaults of node heap size to match the new one introduced.

https://gerrit.wikimedia.org/r/483398