diff options
author | Robert Newson <rnewson@apache.org> | 2019-10-03 14:13:11 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2019-10-04 11:02:24 +0100 |
commit | f4998fb43b2d1f3a514579b957593e359dd629b1 (patch) | |
tree | 0d5389a4ff8c777d80ff7066e07637ebdc57598b | |
parent | 987476280bef65cb13314e94202d95dfe1025f6b (diff) | |
download | couchdb-f4998fb43b2d1f3a514579b957593e359dd629b1.tar.gz |
Update default config settingsupdate-couchdb-defaults
q=2
max_document_size = 8000000 ; 8 MB.
https://github.com/apache/couchdb/issues/2115
-rw-r--r-- | rel/overlay/etc/default.ini | 4 | ||||
-rw-r--r-- | 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 3a363947b..055775f3f 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 ec805632a..7c0f9679b 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). |