You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/03/18 05:05:03 UTC

[couchdb-documentation] branch master updated: Bring back the correct implementation of max_document_size

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

The following commit(s) were added to refs/heads/master by this push:
       new  d57f776   Bring back the correct implementation of max_document_size
d57f776 is described below

commit d57f776b4417210cca581bc24bf5ae97dc2de2aa
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Thu Mar 16 00:07:02 2017 -0400

    Bring back the correct implementation of max_document_size
    
    COUCHDB-2992
---
 src/config/couchdb.rst | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/src/config/couchdb.rst b/src/config/couchdb.rst
index afcef8d..c44b3cd 100644
--- a/src/config/couchdb.rst
+++ b/src/config/couchdb.rst
@@ -189,3 +189,30 @@ Base CouchDB Options
 
           http-check disable-on-404
           option httpchk GET /_up
+
+    .. config:option:: max_document_size :: Limit maximum document body size
+
+        .. versionchanged:: 2.1.0
+
+        Limit maximum document body size. Size is calculated based on the
+        serialized Erlang representation of the JSON document body, because
+        that reflects more accurately the amount of storage consumed on disk.
+
+        HTTP requests which create or update documents will fail with error
+        code 413 if one or more documents is larger than this configuration
+        value.
+
+        In case of `_update` handlers, document size is checked after the
+        transformation and right before being inserted into the database. ::
+
+            [couchdb]
+            max_document_size = 4294967296 ; 4 GB
+
+        .. warning::
+           Before version 2.1.0 this setting was implemented by simply checking
+           http request body sizes. For individual document updates via `PUT`
+           that approximation was close enough, however that is not the case
+           for `_bulk_docs` endpoint. After 2.1.0 a separate configuration
+           parameter was defined: httpd.max_http_request_size, which can be
+           used to limit maximum http request sizes. After upgrade, it is
+           advisable to review those settings and adjust them accordingly.

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].