summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2019-10-04 15:20:20 +0100
committerGitHub <noreply@github.com>2019-10-04 15:20:20 +0100
commitb5c179bc8d98e5bd36ccddfb125bc7078df760d7 (patch)
tree81387792f6d943efe9723dea34aa56e82cc9f8f3
parent75e473672dad993181d8c094cdcd18d35fba8c99 (diff)
parent84680cf3aea64a54d3351276b679c585baa0ea73 (diff)
downloadcouchdb-b5c179bc8d98e5bd36ccddfb125bc7078df760d7.tar.gz
Merge pull request #2228 from apache/update-couchdb-defaults
Update default config settings
-rw-r--r--rel/overlay/etc/default.ini4
-rw-r--r--src/couch/src/couch_multidb_changes.erl2
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).