From f4998fb43b2d1f3a514579b957593e359dd629b1 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Thu, 3 Oct 2019 14:13:11 +0100 Subject: [PATCH] Update default config settings q=2 max_document_size = 8000000 ; 8 MB. https://github.com/apache/couchdb/issues/2115 --- rel/overlay/etc/default.ini | 4 ++-- src/couch/src/couch_multidb_changes.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini index 3a363947ba7..055775f3f3c 100644 --- a/rel/overlay/etc/default.ini +++ b/rel/overlay/etc/default.ini @@ -46,7 +46,7 @@ changes_doc_ids_optimization_threshold = 100 ; due to variabiliy in what is escaped or how floats are encoded, this limit is ; applied conservatively. For example 1.0e+16 could be encoded as 1e16, so 4 used ; for size calculation instead of 7. -;max_document_size = 4294967296 ; bytes +max_document_size = 8000000 ; bytes ; ; Maximum attachment size. ; max_attachment_size = infinity @@ -88,7 +88,7 @@ default_engine = couch couch = couch_bt_engine [cluster] -q=8 +q=2 n=3 ; placement = metro-dc-a:2,metro-dc-b:1 diff --git a/src/couch/src/couch_multidb_changes.erl b/src/couch/src/couch_multidb_changes.erl index ec805632aff..7c0f9679bb3 100644 --- a/src/couch/src/couch_multidb_changes.erl +++ b/src/couch/src/couch_multidb_changes.erl @@ -744,7 +744,7 @@ t_find_shard() -> ?_test(begin DbName = ?tempdb(), ok = fabric:create_db(DbName, [?CTX]), - ?assertEqual(8, length(local_shards(DbName))), + ?assertEqual(2, length(local_shards(DbName))), fabric:delete_db(DbName, [?CTX]) end).