couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r919548 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db.hrl
Date Fri, 05 Mar 2010 19:20:41 GMT
Author: kocolosk
Date: Fri Mar  5 19:20:41 2010
New Revision: 919548

URL: http://svn.apache.org/viewvc?rev=919548&view=rev
Log:
config settings for replicator sessions and pipeline.  Patch by Filipe Manana

Modified:
    couchdb/trunk/etc/couchdb/default.ini.tpl.in
    couchdb/trunk/src/couchdb/couch_db.hrl

Modified: couchdb/trunk/etc/couchdb/default.ini.tpl.in
URL: http://svn.apache.org/viewvc/couchdb/trunk/etc/couchdb/default.ini.tpl.in?rev=919548&r1=919547&r2=919548&view=diff
==============================================================================
--- couchdb/trunk/etc/couchdb/default.ini.tpl.in (original)
+++ couchdb/trunk/etc/couchdb/default.ini.tpl.in Fri Mar  5 19:20:41 2010
@@ -114,3 +114,7 @@
  application/javascript
  application/json
  application/xml
+
+[replicator]
+max_http_sessions = 10
+max_http_pipeline_size = 10
\ No newline at end of file

Modified: couchdb/trunk/src/couchdb/couch_db.hrl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db.hrl?rev=919548&r1=919547&r2=919548&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db.hrl (original)
+++ couchdb/trunk/src/couchdb/couch_db.hrl Fri Mar  5 19:20:41 2010
@@ -255,7 +255,13 @@
     body = nil,
     options = [
         {response_format,binary},
-        {inactivity_timeout, 30000}
+        {inactivity_timeout, 30000},
+        {max_sessions, list_to_integer(
+            couch_config:get("replicator", "max_http_sessions", "10")
+        )},
+        {max_pipeline_size, list_to_integer(
+            couch_config:get("replicator", "max_http_pipeline_size", "10")
+        )}
     ],
     retries = 10,
     pause = 500,



Mime
View raw message