[ 
https://issues.apache.org/jira/browse/COUCHDB-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filipe Manana updated COUCHDB-1054:
-----------------------------------

    Attachment: COUCHDB-1054-3.patch

Updated patch.
Adding the timestamp outside the event handler and using io:put_chars/[1,2].

Relaximation graph:

http://graphs.mikeal.couchone.com/#/graph/0379dbdaef29b1c0fbf034215402a52e

While running this test (100 readers, 100 writers), all log entries have 
monotonically increasing timestamps. Their resolution is at the second level, 
so it shouldn't be very common to get 2 consecutive log messages without 
increasing  timestamps.

Any objection for 1.1.x inclusion (besides trunk)?

> Better couch_log performance
> ----------------------------
>
>                 Key: COUCHDB-1054
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1054
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>         Attachments: COUCHDB-1054-2.patch, COUCHDB-1054-3.patch, 
> COUCHDB-1054.patch
>
>
> Building the messages to write to the console and the log file can be done 
> outside the couch_log gen_event. This significantly increases the parallelism 
> when many processes log messages. The following relaximation test graph shows 
> a throughput increase using the attached patch against current trunk:
> http://graphs.mikeal.couchone.com/#/graph/0379dbdaef29b1c0fbf03421540243f7

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to