Search in sources :

Example 1 with ThresholdMeter

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);
}
Also used : ThresholdMeter(org.apache.flink.runtime.metrics.ThresholdMeter) ResourceManagerPartitionTrackerImpl(org.apache.flink.runtime.io.network.partition.ResourceManagerPartitionTrackerImpl) Duration(java.time.Duration)

Aggregations

Duration (java.time.Duration)1 ResourceManagerPartitionTrackerImpl (org.apache.flink.runtime.io.network.partition.ResourceManagerPartitionTrackerImpl)1 ThresholdMeter (org.apache.flink.runtime.metrics.ThresholdMeter)1