From 97b1e0e3df81c4bd9debd3dbde5d4feeaf7086c4 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 24 May 2016 18:02:11 +0000 Subject: [PATCH] Use only one thread at a time to feed stuff to PDC. --- roles/pdc/backend/templates/pdcupdater.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/pdc/backend/templates/pdcupdater.py b/roles/pdc/backend/templates/pdcupdater.py index 28164066ce..c106b8761f 100644 --- a/roles/pdc/backend/templates/pdcupdater.py +++ b/roles/pdc/backend/templates/pdcupdater.py @@ -4,6 +4,11 @@ config = { # Should we turn on the realtime updater? 'pdcupdater.enabled': True, + # Use only one thread at a time to handle messages. If we have more than + # one, then we can end up POSTing multiple enormous JSON blobs to the PDC + # web frontend, and we'll send it into OOM death. One at a time, people.. + "moksha.workers_per_consumer": 1, + # Credentials to talk to PDC 'pdcupdater.pdc': { {% if env == 'staging' %}