diff options
author | osidorkin <osidorkin@yandex-team.com> | 2024-11-15 16:30:08 +0300 |
---|---|---|
committer | osidorkin <osidorkin@yandex-team.com> | 2024-11-15 16:44:01 +0300 |
commit | fac73483a61e24ad7cae8c9eae02e23e10a862e9 (patch) | |
tree | b763cf38109a02848954d23af0e1b51af8dd4159 | |
parent | 66adb2a8ff583b23ea45559a41594368aa43c8ab (diff) | |
download | ydb-fac73483a61e24ad7cae8c9eae02e23e10a862e9.tar.gz |
YT-23122: Use master caches to cache chaos replication card residency
commit_hash:2828610de8fe23e3df32c1c3bcb2a9a754a8d920
-rw-r--r-- | yt/yt/client/chaos_client/config.h | 18 | ||||
-rw-r--r-- | yt/yt/client/chaos_client/public.h | 1 |
2 files changed, 17 insertions, 2 deletions
diff --git a/yt/yt/client/chaos_client/config.h b/yt/yt/client/chaos_client/config.h index 4454dbb187..9391551f8a 100644 --- a/yt/yt/client/chaos_client/config.h +++ b/yt/yt/client/chaos_client/config.h @@ -10,10 +10,24 @@ namespace NYT::NChaosClient { //////////////////////////////////////////////////////////////////////////////// +class TChaosCacheChannelConfig + : public NRpc::TRetryingChannelConfig + , public NRpc::TBalancingChannelConfig +{ +public: + REGISTER_YSON_STRUCT(TChaosCacheChannelConfig); + + static void Register(TRegistrar /*registrar*/) + { } +}; + +DEFINE_REFCOUNTED_TYPE(TChaosCacheChannelConfig) + +//////////////////////////////////////////////////////////////////////////////// + class TReplicationCardCacheConfig : public TAsyncExpiringCacheConfig - , public NRpc::TBalancingChannelConfig - , public NRpc::TRetryingChannelConfig + , public TChaosCacheChannelConfig { public: bool EnableWatching; diff --git a/yt/yt/client/chaos_client/public.h b/yt/yt/client/chaos_client/public.h index 0493104b9d..28f7c30d5c 100644 --- a/yt/yt/client/chaos_client/public.h +++ b/yt/yt/client/chaos_client/public.h @@ -24,6 +24,7 @@ constexpr int MaxReplicasPerReplicationCard = 128; DECLARE_REFCOUNTED_STRUCT(TReplicationCard) DECLARE_REFCOUNTED_STRUCT(IReplicationCardCache) +DECLARE_REFCOUNTED_CLASS(TChaosCacheChannelConfig) DECLARE_REFCOUNTED_CLASS(TReplicationCardCacheConfig) DECLARE_REFCOUNTED_CLASS(TReplicationCardCacheDynamicConfig) |