From 5dfa7c46d09beaa15efec7248719833e9b6a9e20 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 2 Aug 2016 14:50:18 -0400 Subject: Set TCP_NODELAY option for couchdb (#8264) Mochiweb in couchdb by default sets the TCP socket option SO_NODELAY to false. This means that small data sent to the TCP socket, like the reply to a document write request (or reading a very small document), will not be sent immediately to the network - TCP will buffer it for a while hoping that it will be asked to send more data through the same socket and then send all the data at once for increased performance. Setting this increases the couchdb speed significantly. Change-Id: Ib493ef061ff62c9bdee501e44ce2b55990fe14b7 --- puppet/modules/site_couchdb/files/local.ini | 3 +++ 1 file changed, 3 insertions(+) (limited to 'puppet') diff --git a/puppet/modules/site_couchdb/files/local.ini b/puppet/modules/site_couchdb/files/local.ini index b921a927..a6f4d981 100644 --- a/puppet/modules/site_couchdb/files/local.ini +++ b/puppet/modules/site_couchdb/files/local.ini @@ -6,3 +6,6 @@ [compactions] _default = [{db_fragmentation, "70%"}, {view_fragmentation, "60%"}, {from, "03:00"}, {to, "05:00"}] + +[httpd] +socket_options = [{nodelay, true}] -- cgit v1.2.3