From 69569e3571d1e6878959a9afd00de7e8a3cdbb66 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 24 Mar 2020 16:21:29 +0100 Subject: [PATCH] [misc] config: add headroom for JSON serialization in maxUpdateSize --- services/real-time/config/settings.defaults.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/real-time/config/settings.defaults.coffee b/services/real-time/config/settings.defaults.coffee index 9ca2348b0b..ee4bd74316 100644 --- a/services/real-time/config/settings.defaults.coffee +++ b/services/real-time/config/settings.defaults.coffee @@ -54,8 +54,9 @@ settings = # combine # max_doc_length (2mb see above) * 2 (delete + insert) - # max_ranges_size (3mb see MAX_RANGES_SIZE in doc-updater) - maxUpdateSize: parseInt(process.env['MAX_UPDATE_SIZE']) or 7 * 1024 * 1024 + # max_ranges_size (3mb see MAX_RANGES_SIZE in document-updater) + # overhead for JSON serialization + maxUpdateSize: parseInt(process.env['MAX_UPDATE_SIZE']) or 7 * 1024 * 1024 + 64 * 1024 shutdownDrainTimeWindow: process.env['SHUTDOWN_DRAIN_TIME_WINDOW'] or 9