From 46dd3885d2c655e98dd1c77b6f972c54afbc56ae Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 10:11:06 +0300 Subject: [PATCH] [#41] netmap: Add well-known EC-related network settings Because big number of chunks can lead to excessive CPU/RAM usage, we restrict EC policies via network settings. Signed-off-by: Evgenii Stratonikov --- netmap/types.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netmap/types.proto b/netmap/types.proto index f599d56..926c4bc 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -289,6 +289,12 @@ message NetworkConfig { // - **WithdrawFee** \ // Fee paid for withdrawal of funds paid by the account owner. // Value: little-endian integer. Default: 0. + // - **MaxECDataCount** \ + // Maximum number of data shards for EC placement policy. + // Value: little-endian integer. Default: 0. + // - **MaxECParityCount** \ + // Maximum number of parity shards for EC placement policy. + // Value: little-endian integer. Default: 0. message Parameter { // Parameter key. UTF-8 encoded string bytes key = 1 [ json_name = "key" ];