mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add Put input readahead (#14084)
When reading input for PutObject or PutObjectPart add a readahead buffer for big inputs. This will make network reads+hashing separate run async with erasure coding and writes. This will reduce overall latency in distributed setups where the input is from upstream and writes go to other servers. We will read at 2 buffers ahead, meaning one will always be ready/waiting and one is currently being read from. This improves PutObject and PutObjectParts for these cases.
This commit is contained in:
@@ -60,6 +60,9 @@ const (
|
||||
// For hardrives it is possible to set this to a lower value to avoid any
|
||||
// spike in latency. But currently we are simply keeping it optimal for SSDs.
|
||||
|
||||
// bigFileThreshold is the point where we add readahead to put operations.
|
||||
bigFileThreshold = 128 * humanize.MiByte
|
||||
|
||||
// XL metadata file carries per object metadata.
|
||||
xlStorageFormatFile = "xl.meta"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user