Search in sources :

Example 1 with ThreadInfoRequestCoordinator

use of org.apache.flink.runtime.webmonitor.threadinfo.ThreadInfoRequestCoordinator in project flink by apache.

the class WebMonitorEndpoint method initializeThreadInfoTracker.

private JobVertexThreadInfoTracker<JobVertexThreadInfoStats> initializeThreadInfoTracker(ScheduledExecutorService executor) {
    final Duration akkaTimeout = clusterConfiguration.get(AkkaOptions.ASK_TIMEOUT_DURATION);
    final Duration flameGraphCleanUpInterval = clusterConfiguration.get(RestOptions.FLAMEGRAPH_CLEANUP_INTERVAL);
    final ThreadInfoRequestCoordinator threadInfoRequestCoordinator = new ThreadInfoRequestCoordinator(executor, akkaTimeout);
    return JobVertexThreadInfoTrackerBuilder.newBuilder(resourceManagerRetriever, Function.identity(), executor, restConfiguration.getTimeout()).setCoordinator(threadInfoRequestCoordinator).setCleanUpInterval(flameGraphCleanUpInterval).setNumSamples(clusterConfiguration.getInteger(RestOptions.FLAMEGRAPH_NUM_SAMPLES)).setStatsRefreshInterval(clusterConfiguration.get(RestOptions.FLAMEGRAPH_REFRESH_INTERVAL)).setDelayBetweenSamples(clusterConfiguration.get(RestOptions.FLAMEGRAPH_DELAY)).setMaxThreadInfoDepth(clusterConfiguration.getInteger(RestOptions.FLAMEGRAPH_STACK_TRACE_DEPTH)).build();
}
Also used : ThreadInfoRequestCoordinator(org.apache.flink.runtime.webmonitor.threadinfo.ThreadInfoRequestCoordinator) Duration(java.time.Duration)

Aggregations

Duration (java.time.Duration)1 ThreadInfoRequestCoordinator (org.apache.flink.runtime.webmonitor.threadinfo.ThreadInfoRequestCoordinator)1