-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> socket_options = [{nodelay, true}]
Just want to confirm it. You are right...
On 18.05.2012 22:57, Johannes Schneider wrote:
> Thanks for the hint. Will try it out. But I am sure, there is a
> good reason for enabling that algorithm?
>
>
> On 18.05.2012 22:27, Adam Kocoloski wrote:
>> 40ms indicates Nagle's algorithm is kicking in and trying to
>> reduce the number of packets sent over the wire. Try setting
>> the following in the .ini configuration:
>
>> socket_options = [{nodelay, true}]
>
>> I believe that was the default in 1.0 and has changed since
>> then. Cheers, Adam
>
>> On May 18, 2012, at 2:59 PM, Johannes Schneider wrote:
>
>> Hi guys,
>
>
>> I am using Ubuntu 12.04 (x86_64) with the default CouchDB
>> installation. And I have created some very small tests to check
>> the performance.
>
>> It is just one simple "get".
>
>
>> With 1.0.1 it used to take about 1 or 2 milli seconds. Since the
>> upgrade the same GET takes about 40 millis. I am quite sure
>> that there is some type of misconfiguration... Anybody has a hint
>> for me? Are there any special configuration options that changed
>> from 1.0.1 to 1.2.0 (nothing found in release notes)? Or did
>> Canonical some magic?
>
>
>
>> Debug output in couch.log: [Fri, 18 May 2012 18:55:35 GMT]
>> [debug] [<0.400.0>] 'GET'
>> /couch_unit_test_1337367299363_55042/_design/all/_view/byTypeAndId?startkey=%5B%22lens%22%5D&include_docs=true&endkey=%5B%22lens%22,%7B%7D%5D
>
>>
>
> {1,
>
>
>> 1} from "127.0.0.1" Headers: [{'Accept',"text/html, image/gif,
>> image/jpeg, *; q=.2, */*; q=.2"}, {'Connection',"keep-alive"},
>> {'Host',"localhost:5984"}, {'User-Agent',"Java/1.6.0_26"}] [Fri,
>> 18 May 2012 18:55:35 GMT] [debug] [<0.400.0>] OAuth Params:
>> [{"startkey","[\"lens\"]"}, {"include_docs","true"},
>> {"endkey","[\"lens\",{}]"}] [Fri, 18 May 2012 18:55:35 GMT]
>> [debug] [<0.400.0>] request_group {Pid, Seq} {<0.402.0>,5} [Fri,
>> 18 May 2012 18:55:35 GMT] [info] [<0.400.0>] 127.0.0.1 - - GET
>> /couch_unit_test_1337367299363_55042/_design/all/_view/byTypeAndId?startkey=%5B%22lens%22%5D&include_docs=true&endkey=%5B%22lens%22,%7B%7D%5D
>
>>
>
> 200
>
>
>> The map function. ------------------------------ function( doc )
>> { var type = doc['@type']; var id = doc['_id'];
>
>> if ( type == null || id == null ) { return }
>
>> emit( [type, id] ); } ------------------------------
>
>
>> No other documents are available (returns "total_rows":0
>
>
>
>> Thanks,
>
>> Johannes
>
>
>
- --
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJPt/fUAAoJEAytD9R7Qv6dKUIH/iwcBgFuNch2MbbckF50pgio
Os6YNUNVpuxQgxehOav0wN87Jt51Zavyqj523/bSBGAQdF3WbZEjwHmpVXsBOjVX
LUID/Nh7UGI3TRYTGCORET8Ffd1mKr3G0WxQqSyS34TDGm3pJHdCQt6SX/kSo7Ew
6a1H0RpCAeTLdF6wRJQB4EeLjuBFTIq2e+KLiBLV7/A+jqfSRBhBsH8UJaCuhYn7
TGsEghyIrEgCNjLi7Zxk2drvSH6dS6FfoM2M04FcDyzk7bORumluDy8aEkGxl/XF
lvVanap1/kF+YbF8hKd0uw5gEwHzGNtBtVbecz+MJUeAtxijJnPeqTJDQ4rGQdA=
=1ce0
-----END PGP SIGNATURE-----