[ 
https://issues.apache.org/jira/browse/TUBEMQ-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17141698#comment-17141698
 ] 

ASF subversion and git services commented on TUBEMQ-123:
--------------------------------------------------------

Commit e90f803f2e79e71b2178603db85c6266e9fb44bc in incubator-tubemq's branch 
refs/heads/TUBEMQ-2 from gosonzhang
[ https://gitbox.apache.org/repos/asf?p=incubator-tubemq.git;h=e90f803 ]

[TUBEMQ-123] Batch flush data to disk (#165)

Co-authored-by: gosonzhang <[email protected]>

> Batch flush data to disk
> ------------------------
>
>                 Key: TUBEMQ-123
>                 URL: https://issues.apache.org/jira/browse/TUBEMQ-123
>             Project: Apache TubeMQ
>          Issue Type: Sub-task
>            Reporter: Guocheng Zhang
>            Assignee: Guocheng Zhang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>         Attachments: image-2020-05-16-21-56-43-218.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 4. More effective memory-to-disk operation: At present, the flashing 
> operation is to flash messages from the memory to the disk one by one for 
> storage. This block can be adjusted to write to the disk in batches according 
> to the memory block, thereby improving storage efficiency;
>  
> ------------------------------------------------------
> This problem was pointed out by an MQ expert: in the current version, TubeMQ 
> does not handle the data well enough when refreshing the data from memory to 
> disk, It is carried out through the refresh mode one by one, the related 
> problems are shown in the following figure:
> !image-2020-05-16-21-56-43-218.png!
>  
>  After searching for documents and analyzing this problem, This should be a 
> better practice method that datas writing to disk according to the size of 4 
> times the number of bytes, but the difference between the specific size and 
> the effect of flushing is related to the relevant operating environment.
> So I want to optimize this to flush the datas to the disk in batches of a 
> specified size (configurable) to improve disk write efficiency, and combined 
> with the modification of [TUBEMQ-120], it should be able to achieve better 
> results



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to