app/vminsert: tune the maximum summary buffer size for pending data to 1/4 of available RAM, since 1/2 of RAM is too big considering GOGC overhead

This commit is contained in:
Aliaksandr Valialkin 2020-05-25 02:00:37 +03:00
parent 4a82631e44
commit 9844845d79

View File

@ -340,7 +340,7 @@ func InitStorageNodes(addrs []string) {
}(addr)
}
maxBufSizePerStorageNode = memory.Allowed() / 2 / len(storageNodes)
maxBufSizePerStorageNode = memory.Allowed() / 4 / len(storageNodes)
if maxBufSizePerStorageNode > consts.MaxInsertPacketSize {
maxBufSizePerStorageNode = consts.MaxInsertPacketSize
}