mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
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:
parent
be703a034f
commit
0702e429f0
31 changed files with 376 additions and 43 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue