Disclosed are a system, a method, and a computer program product to
optimize the overall latency of transferring data from peer computers to
storage devices. The latency optimization occurs after a group of data is
received and organized by the peer computers. The average amount of time
to transfer data to each particular storage device from the peer
computers is used to determine the assignment of data transfers between
the peer computers. Each peer computer maintains continuously updated
measurements of the average time to transfer data to each storage device.
The updated transfer time measurements are based upon a moving average
with adjustable weighting of past and present measurements enabling the
system to adapt to changing conditions.