[ 
https://issues.apache.org/jira/browse/ARTEMIS-3282?focusedWorklogId=595106&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-595106
 ]

ASF GitHub Bot logged work on ARTEMIS-3282:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/May/21 07:46
            Start Date: 12/May/21 07:46
    Worklog Time Spent: 10m 
      Work Description: franz1981 commented on a change in pull request #3566:
URL: https://github.com/apache/activemq-artemis/pull/3566#discussion_r630803743



##########
File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java
##########
@@ -221,6 +221,8 @@ public void handlePacket(final Packet packet) {
                handleCommitRollback((ReplicationCommitMessage) packet);
                break;
             case PacketImpl.REPLICATION_PAGE_WRITE:
+               // potential blocking I/O operation! flush existing packets to 
save long tail latency
+               endOfBatch();

Review comment:
       @clebertsuconic @gtully 
   I'm not yet sure about it: a page write can be a very fast operation 
depending on the amount of data to be written ie it's the cost to copy some 
buffer X times, really. Flushing any existing batch is just to ensure no 
further delay is going to affect the overall response time of replication, but 
if the batch is too small, bad network utilization will still hurt scalability 
and average latencies.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 595106)
    Time Spent: 2h  (was: 1h 50m)

> Expose Replication response batching tuning
> -------------------------------------------
>
>                 Key: ARTEMIS-3282
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3282
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Major
>          Time Spent: 2h
>  Remaining Estimate: 0h
>




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

Reply via email to