runzhiwang edited a comment on pull request #296:
URL: https://github.com/apache/incubator-ratis/pull/296#issuecomment-732968122


   transferTo can avoid reading data to user space, it transfer data between 
kernel space and socket/disk. 
   
   1. But we still need to calculate checksum, so client still need read data 
to user space.
   
   2. Besides, if we use transferTo, client transfer data to three nodes in 
parallel maybe best, otherwise if we use client -> primary -> peer, primary 
must wait finish write 128MB block, and then transfer the whole block file to 
follower, it maybe slow, but if client transfer data to three nodes in 
parallel, "the client has a higher network bandwidth requirement and it cannot 
optimise the network traffic". 
   
   So not sure whether can use transferTo in ozone.


----------------------------------------------------------------
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]


Reply via email to