From 116d1d725aad42a585ef71306762ec61a1298838 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 8 Feb 2017 17:00:45 +0100 Subject: Cap merge dist and backup window sizes to 50k entries. compileconfig limits window sizes to 50k silently. 50k is 50% of the current max number of entries returned by "missingentries". This limit can be lifted once CATLFISH-90 has been implemented. --- tools/compileconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/compileconfig.py b/tools/compileconfig.py index 1ac5249..fd77b90 100755 --- a/tools/compileconfig.py +++ b/tools/compileconfig.py @@ -365,10 +365,10 @@ def gen_config(nodename, config, localconfig): merge = localconfig["merge"] plopconfig.append((Symbol("db_backend_opt"), [(Symbol("write_flag"), Symbol("read"))])) plopconfig.append((Symbol("merge_delay"), merge["min-delay"])) - plopconfig.append((Symbol("merge_dist_winsize"), merge["dist-window-size"])) + plopconfig.append((Symbol("merge_dist_winsize"), min(50000, merge["dist-window-size"]))) plopconfig.append((Symbol("merge_dist_sendlog_chunksize"), merge["dist-sendlog-chunksize"])) plopconfig.append((Symbol("merge_dist_sendentries_chunksize"), merge["dist-sendentries-chunksize"])) - reloadableplopconfig.append((Symbol("merge_backup_winsize"), merge["backup-window-size"])) + reloadableplopconfig.append((Symbol("merge_backup_winsize"), min(50000, merge["backup-window-size"]))) reloadableplopconfig.append((Symbol("merge_backup_sendlog_chunksize"), merge["backup-sendlog-chunksize"])) reloadableplopconfig.append((Symbol("merge_backup_sendentries_chunksize"), merge["backup-sendentries-chunksize"])) reloadableplopconfig.append((Symbol("frontend_nodes"), zip(frontendnodenames, frontendnodeaddresses))) -- cgit v1.1