use of org.apache.flink.runtime.metrics.ThresholdMeter in project flink by apache.
the class ActiveResourceManagerFactory method createResourceManager.
@Override
public ResourceManager<WorkerType> createResourceManager(Configuration configuration, ResourceID resourceId, RpcService rpcService, UUID leaderSessionId, HeartbeatServices heartbeatServices, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices, Executor ioExecutor) throws Exception {
final ThresholdMeter failureRater = createStartWorkerFailureRater(configuration);
final Duration retryInterval = configuration.get(ResourceManagerOptions.START_WORKER_RETRY_INTERVAL);
final Duration workerRegistrationTimeout = configuration.get(ResourceManagerOptions.TASK_MANAGER_REGISTRATION_TIMEOUT);
return new ActiveResourceManager<>(createResourceManagerDriver(configuration, webInterfaceUrl, rpcService.getAddress()), configuration, rpcService, leaderSessionId, resourceId, heartbeatServices, resourceManagerRuntimeServices.getSlotManager(), ResourceManagerPartitionTrackerImpl::new, resourceManagerRuntimeServices.getJobLeaderIdService(), clusterInformation, fatalErrorHandler, resourceManagerMetricGroup, failureRater, retryInterval, workerRegistrationTimeout, ioExecutor);
}
Aggregations