Add heap usage estimate to ClusterInfo (#128723)

Co-authored-by: ywangd <yang.wang@elastic.co>
Co-authored-by: rjernst <ryan@elastic.co>
Relates: ES-11445
This commit is contained in:
Nick Tindall 2025-06-12 13:45:57 +10:00 committed by GitHub
parent be703a034f
commit 0702e429f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 376 additions and 43 deletions

View file

@ -43,7 +43,7 @@ public class MockInternalClusterInfoService extends InternalClusterInfoService {
private volatile BiFunction<DiscoveryNode, FsInfo.Path, FsInfo.Path> diskUsageFunction;
public MockInternalClusterInfoService(Settings settings, ClusterService clusterService, ThreadPool threadPool, NodeClient client) {
super(settings, clusterService, threadPool, client);
super(settings, clusterService, threadPool, client, ShardHeapUsageCollector.EMPTY);
}
public void setDiskUsageFunctionAndRefresh(BiFunction<DiscoveryNode, FsInfo.Path, FsInfo.Path> diskUsageFn) {