From 2272c55c4d335ccf3d881cfa96e46f99dc42f77e Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 6 Feb 2023 13:28:29 +0300 Subject: [PATCH] [#2238] engine: Add test for component initialization failures Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 1 + cmd/frostfs-cli/internal/client/client.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be07ddaf..327a94148 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Changelog for FrostFS Node - Link object is broadcast throughout the whole container now (#57) - Pilorama now can merge multiple batches into one (#2231) - Storage engine now can start even when some shard components are unavailable (#2238) +- `neofs-cli` buffer for object put increased from 4 KiB to 3 MiB (#2243) ### Fixed - Increase payload size metric on shards' `put` operation (#1794) diff --git a/cmd/frostfs-cli/internal/client/client.go b/cmd/frostfs-cli/internal/client/client.go index fcfa2b46b..718110322 100644 --- a/cmd/frostfs-cli/internal/client/client.go +++ b/cmd/frostfs-cli/internal/client/client.go @@ -404,8 +404,7 @@ func PutObject(prm PutObjectPrm) (*PutObjectRes, error) { } if prm.rdr != nil { - // TODO: (neofs-node#1198) explore better values or configure it - const defaultBufferSizePut = 4096 + const defaultBufferSizePut = 3 << 20 // Maximum chunk size is 3 MiB in the SDK. if sz == 0 || sz > defaultBufferSizePut { sz = defaultBufferSizePut