diff options
author | kruall <kruall@ydb.tech> | 2022-12-21 11:25:45 +0300 |
---|---|---|
committer | kruall <kruall@ydb.tech> | 2022-12-21 11:25:45 +0300 |
commit | 412f8d7d894ddc6bb04fc7f36729d4f36d9aea50 (patch) | |
tree | 9b5101fa333866c8bfe0d9671e730b593901ec45 /library/cpp/actors/core/harmonizer.h | |
parent | d4a4e5229e5236adce08598a61300903e51744ea (diff) | |
download | ydb-412f8d7d894ddc6bb04fc7f36729d4f36d9aea50.tar.gz |
Add sensors about AS,
Diffstat (limited to 'library/cpp/actors/core/harmonizer.h')
-rw-r--r-- | library/cpp/actors/core/harmonizer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/cpp/actors/core/harmonizer.h b/library/cpp/actors/core/harmonizer.h index 5ab44369aa..61f13e43ac 100644 --- a/library/cpp/actors/core/harmonizer.h +++ b/library/cpp/actors/core/harmonizer.h @@ -6,9 +6,13 @@ namespace NActors { class IExecutorPool; - struct TPoolStateFlags { + struct TPoolHarmonizedStats { + ui64 IncreasingThreadsByNeedyState = 0; + ui64 DecreasingThreadsByStarvedState = 0; + ui64 DecreasingThreadsByHoggishState = 0; bool IsNeedy = false; bool IsStarved = false; + bool IsHoggish = false; }; // Pool cpu harmonizer @@ -19,7 +23,7 @@ namespace NActors { virtual void DeclareEmergency(ui64 ts) = 0; virtual void AddPool(IExecutorPool* pool, TSelfPingInfo *pingInfo = nullptr) = 0; virtual void Enable(bool enable) = 0; - virtual TPoolStateFlags GetPoolFlags(i16 poolId) const = 0; + virtual TPoolHarmonizedStats GetPoolStats(i16 poolId) const = 0; }; IHarmonizer* MakeHarmonizer(ui64 ts); |