public class MesosResourceManager extends org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MesosResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
String resourceManagerEndpointId,
org.apache.flink.runtime.clusterframework.types.ResourceID resourceId,
org.apache.flink.runtime.highavailability.HighAvailabilityServices highAvailabilityServices,
org.apache.flink.runtime.heartbeat.HeartbeatServices heartbeatServices,
org.apache.flink.runtime.resourcemanager.slotmanager.SlotManager slotManager,
org.apache.flink.runtime.metrics.MetricRegistry metricRegistry,
org.apache.flink.runtime.resourcemanager.JobLeaderIdService jobLeaderIdService,
org.apache.flink.runtime.entrypoint.ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
org.apache.flink.configuration.Configuration flinkConfig,
MesosServices mesosServices,
MesosConfiguration mesosConfig,
MesosTaskManagerParameters taskManagerParameters,
org.apache.flink.runtime.clusterframework.ContainerSpecification taskManagerContainerSpec,
String webUiUrl,
org.apache.flink.runtime.metrics.groups.JobManagerMetricGroup jobManagerMetricGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptOffers(AcceptOffers msg)
Accept offers as advised by the launch coordinator.
|
protected CompletableFuture<Void> |
clearStateAsync() |
protected akka.actor.ActorRef |
createConnectionMonitor() |
protected akka.actor.ActorRef |
createLaunchCoordinator(org.apache.mesos.SchedulerDriver schedulerDriver,
akka.actor.ActorRef selfActor) |
protected akka.actor.ActorRef |
createReconciliationCoordinator(org.apache.mesos.SchedulerDriver schedulerDriver) |
protected akka.actor.ActorRef |
createSelfActor() |
protected akka.actor.ActorRef |
createTaskMonitor(org.apache.mesos.SchedulerDriver schedulerDriver) |
protected void |
disconnected(Disconnected message)
Called when disconnected from Mesos.
|
protected void |
executorLost(ExecutorLost message) |
protected void |
frameworkMessage(FrameworkMessage message) |
protected void |
initialize() |
protected void |
internalDeregisterApplication(org.apache.flink.runtime.clusterframework.ApplicationStatus finalStatus,
String diagnostics) |
protected void |
offerRescinded(OfferRescinded message)
Called when resource offers are rescinded.
|
CompletableFuture<Void> |
postStop() |
protected CompletableFuture<Void> |
prepareLeadershipAsync() |
void |
reconcile(org.apache.flink.mesos.scheduler.ReconciliationCoordinator.Reconcile message)
Handles a reconciliation request from a task monitor.
|
protected void |
registered(Registered message) |
protected void |
reregistered(ReRegistered message)
Called when reconnected to Mesos following a failover event.
|
protected void |
resourceOffers(ResourceOffers message)
Called when resource offers are made to the framework.
|
protected void |
slaveLost(SlaveLost message) |
Collection<org.apache.flink.runtime.clusterframework.types.ResourceProfile> |
startNewWorker(org.apache.flink.runtime.clusterframework.types.ResourceProfile resourceProfile) |
protected void |
statusUpdate(StatusUpdate message)
Handles a task status update from Mesos.
|
boolean |
stopWorker(RegisteredMesosWorkerNode workerNode) |
void |
taskTerminated(org.apache.flink.mesos.scheduler.TaskMonitor.TaskTerminated message)
Handles a termination notification from a task monitor.
|
protected RegisteredMesosWorkerNode |
workerStarted(org.apache.flink.runtime.clusterframework.types.ResourceID resourceID)
Callback when a worker was started.
|
cancelSlotRequest, closeJobManagerConnection, closeTaskManagerConnection, createSlotsPerWorker, deregisterApplication, disconnectJobManager, disconnectTaskManager, getNumberOfRegisteredTaskManagers, getNumberRequiredTaskManagerSlots, grantLeadership, handleError, heartbeatFromJobManager, heartbeatFromTaskManager, jobLeaderLostLeadership, notifySlotAvailable, onFatalError, registerInfoMessageListener, registerJobManager, registerTaskExecutor, releaseResource, removeJob, requestResourceOverview, requestSlot, requestTaskManagerFileUpload, requestTaskManagerInfo, requestTaskManagerInfo, requestTaskManagerMetricQueryServicePaths, revokeLeadership, sendInfoMessage, sendSlotReport, start, unRegisterInfoMessageListenercallAsyncWithoutFencing, getFencingToken, getMainThreadExecutor, getUnfencedMainThreadExecutor, runAsyncWithoutFencing, setFencingTokencallAsync, getAddress, getEndpointId, getHostname, getRpcService, getSelfGateway, getTerminationFuture, runAsync, scheduleRunAsync, scheduleRunAsync, shutDown, stop, validateRunsInMainThreadpublic MesosResourceManager(org.apache.flink.runtime.rpc.RpcService rpcService,
String resourceManagerEndpointId,
org.apache.flink.runtime.clusterframework.types.ResourceID resourceId,
org.apache.flink.runtime.highavailability.HighAvailabilityServices highAvailabilityServices,
org.apache.flink.runtime.heartbeat.HeartbeatServices heartbeatServices,
org.apache.flink.runtime.resourcemanager.slotmanager.SlotManager slotManager,
org.apache.flink.runtime.metrics.MetricRegistry metricRegistry,
org.apache.flink.runtime.resourcemanager.JobLeaderIdService jobLeaderIdService,
org.apache.flink.runtime.entrypoint.ClusterInformation clusterInformation,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler,
org.apache.flink.configuration.Configuration flinkConfig,
MesosServices mesosServices,
MesosConfiguration mesosConfig,
MesosTaskManagerParameters taskManagerParameters,
org.apache.flink.runtime.clusterframework.ContainerSpecification taskManagerContainerSpec,
@Nullable
String webUiUrl,
org.apache.flink.runtime.metrics.groups.JobManagerMetricGroup jobManagerMetricGroup)
protected akka.actor.ActorRef createSelfActor()
protected akka.actor.ActorRef createConnectionMonitor()
protected akka.actor.ActorRef createTaskMonitor(org.apache.mesos.SchedulerDriver schedulerDriver)
protected akka.actor.ActorRef createLaunchCoordinator(org.apache.mesos.SchedulerDriver schedulerDriver,
akka.actor.ActorRef selfActor)
protected akka.actor.ActorRef createReconciliationCoordinator(org.apache.mesos.SchedulerDriver schedulerDriver)
protected void initialize()
throws org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerException
initialize in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerExceptionprotected CompletableFuture<Void> prepareLeadershipAsync()
prepareLeadershipAsync in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>protected CompletableFuture<Void> clearStateAsync()
clearStateAsync in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>public CompletableFuture<Void> postStop()
postStop in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>protected void internalDeregisterApplication(org.apache.flink.runtime.clusterframework.ApplicationStatus finalStatus,
@Nullable
String diagnostics)
throws org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerException
internalDeregisterApplication in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>org.apache.flink.runtime.resourcemanager.exceptions.ResourceManagerExceptionpublic Collection<org.apache.flink.runtime.clusterframework.types.ResourceProfile> startNewWorker(org.apache.flink.runtime.clusterframework.types.ResourceProfile resourceProfile)
startNewWorker in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>public boolean stopWorker(RegisteredMesosWorkerNode workerNode)
stopWorker in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>protected RegisteredMesosWorkerNode workerStarted(org.apache.flink.runtime.clusterframework.types.ResourceID resourceID)
workerStarted in class org.apache.flink.runtime.resourcemanager.ResourceManager<RegisteredMesosWorkerNode>resourceID - The worker resource id (as provided by the TaskExecutor)protected void registered(Registered message)
protected void reregistered(ReRegistered message)
protected void disconnected(Disconnected message)
protected void resourceOffers(ResourceOffers message)
protected void offerRescinded(OfferRescinded message)
protected void statusUpdate(StatusUpdate message)
protected void frameworkMessage(FrameworkMessage message)
protected void slaveLost(SlaveLost message)
protected void executorLost(ExecutorLost message)
public void acceptOffers(AcceptOffers msg)
Acceptance is routed through the RM to update the persistent state before forwarding the message to Mesos.
public void reconcile(org.apache.flink.mesos.scheduler.ReconciliationCoordinator.Reconcile message)
public void taskTerminated(org.apache.flink.mesos.scheduler.TaskMonitor.TaskTerminated message)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.