diff options
author | capone212 <capone212@yandex-team.com> | 2024-11-01 13:00:16 +0300 |
---|---|---|
committer | capone212 <capone212@yandex-team.com> | 2024-11-01 13:27:26 +0300 |
commit | 78b7133a26d98d9c414c6b7a74dc38b0c0378274 (patch) | |
tree | d89d1fa7ffb5d0fad98ad3b6bf8d033761bc0c63 | |
parent | f617cea0355f619b75b172405a92786203561e15 (diff) | |
download | ydb-78b7133a26d98d9c414c6b7a74dc38b0c0378274.tar.gz |
YT-23105: Support network quota for tablet cell bundles
YT-23105: Support network quota for tablet cell bundles
commit_hash:599560483fed22b4b2c8d2686377bb94de6642dc
-rw-r--r-- | yt/yt/client/bundle_controller_client/bundle_controller_settings.cpp | 4 | ||||
-rw-r--r-- | yt/yt/client/bundle_controller_client/bundle_controller_settings.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/yt/yt/client/bundle_controller_client/bundle_controller_settings.cpp b/yt/yt/client/bundle_controller_client/bundle_controller_settings.cpp index 44a1a6b3c1..e555b029fb 100644 --- a/yt/yt/client/bundle_controller_client/bundle_controller_settings.cpp +++ b/yt/yt/client/bundle_controller_client/bundle_controller_settings.cpp @@ -111,6 +111,10 @@ void TBundleResourceQuota::Register(TRegistrar registrar) registrar.Parameter("memory", &TThis::Memory) .GreaterThanOrEqual(0) .Default(0); + + registrar.Parameter("network", &TThis::Network) + .GreaterThanOrEqual(0) + .Default(0); } //////////////////////////////////////////////////////////////////////////////// diff --git a/yt/yt/client/bundle_controller_client/bundle_controller_settings.h b/yt/yt/client/bundle_controller_client/bundle_controller_settings.h index b4bbd92713..9d8717da15 100644 --- a/yt/yt/client/bundle_controller_client/bundle_controller_settings.h +++ b/yt/yt/client/bundle_controller_client/bundle_controller_settings.h @@ -55,6 +55,7 @@ struct TInstanceResources : public NYTree::TYsonStruct { i64 Memory; + // Bits per second. std::optional<i64> Net; TString Type; @@ -144,6 +145,7 @@ struct TBundleResourceQuota { int Vcpu; i64 Memory; + i64 Network; REGISTER_YSON_STRUCT(TBundleResourceQuota); |