summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-08-02 14:50:18 -0400
committerMicah <micah@leap.se>2016-08-25 15:49:12 -0400
commitdbeaa91f10441bb44d328f5abe255f5b93c6ef63 (patch)
tree3ec63ef98787599efd4a5c2afdb52512025abbba
parente2fd4bba275e4d66a908b8917610e60dbab79d20 (diff)
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
-rw-r--r--puppet/modules/site_couchdb/files/local.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/files/local.ini b/puppet/modules/site_couchdb/files/local.ini
index 22aa0177..a77a74a6 100644
--- a/puppet/modules/site_couchdb/files/local.ini
+++ b/puppet/modules/site_couchdb/files/local.ini
@@ -89,3 +89,9 @@
; changing this.
;[admins]
;admin = mysecretpassword
+
+[compactions]
+_default = [{db_fragmentation, "70%"}, {view_fragmentation, "60%"}, {from, "03:00"}, {to, "05:00"}]
+
+[httpd]
+socket_options = [{nodelay, true}]