当前位置: 首页 > news >正文

主机怎么装wordpress北京seo网络推广

主机怎么装wordpress,北京seo网络推广,购物商城网站建设,丰台b2c网站制作价格ResourceManager 总结 一、概述 1、ResourceManager 管理 Flink 集群中的计算资源,计算资源主要来自 TaskManager 组件。 2、如果集群采用 Native【本地模式】部署,则 ResourceManager 会动态地向集群资源管理器申请 Container 并启动TaskManager&…
ResourceManager 总结
一、概述
1、ResourceManager 管理 Flink 集群中的计算资源,计算资源主要来自 TaskManager 组件。

2、如果集群采用 Native【本地模式】部署,则 ResourceManager 会动态地向集群资源管理器申请 Container 并启动TaskManager,例如Hadoop Yarn、Kubernetes等。

3、ResourceManager主要接收来自 JobManager 的 SlotRequest 和 TaskManager 的 SlotReport。
二、分类
1、动态资源管理 和 不支持动态资源管理
1)一类支持动态资源管理,例如KubernetesResourceManager、YarnResourceManager及MesosResourceManager

支持动态资源管理的集群类型,可以按需启动TaskManager资源,根据Job所需的资源请求,动态启动TaskManager节点,这种资源管理方式不用担心资源浪费和资源动态伸缩的问题。

实现动态资源管理的ResourceManager需要继承ActiveResourceManager基本实现类。

2)另一类不支持动态资源管理,例如StandaloneResourceManager
2、分类图

在这里插入图片描述

三、核心服务

ResourceManagerRuntimeServices 中包含 SlotManager 和 JobLeaderldService 两个主要服务和 HeartbeatService 心跳服务。

1、SlotManager 管理整个集群的 Slot 计算资源,并对 Slot 计算资源进行统一的分配和管理,同时实现了对 TaskManager 信息的注册和管理。
2、JobLeaderldService 通过实现 jobLeaderldListeners 实时监听 JobManager 的运行状态,以获取集群启动的作业对应的 JobLeaderld 信息,防止出现 JobManager 无法连接的情况,用于管理注册的 JobManager 节点,包括对 JobManager 的注册和注销等操作。
3、HeartbeatService 主要通过 TaskManagerHeartbeatListener 和 JobManagerHeartbeatListener 两个监听器收集来自 TaskManager和 JobManager 的心跳信息,以保证整个运行时中各个组件之间能够正常通信。
四、ResourceManager 的初始化和启动
DefaultDispatcherResourceManagerComponentFactory#create 方法
1、初始化 ResourceManager
 resourceManager =resourceManagerFactory.createResourceManager(configuration,ResourceID.generate(),rpcService,highAvailabilityServices,heartbeatServices,fatalErrorHandler,new ClusterInformation(hostname, blobServer.getPort()),webMonitorEndpoint.getRestBaseUrl(),metricRegistry,hostname,ioExecutor);
1)创建 ResourceManagerRuntimeServices
1.创建 SlotManager

SlotMatchingStrategy 根据作业中给定的 ResourceProfile 匹配 Slot 计算资源。SlotMatchingStrategy主要分为两种类型:

一种是LeastUtilizationSlotMatchingStrategy,即按照利用率最低原则匹配Slot资源,尽可能保证TaskExecutor上资源的使用率处于比较低的水平,这种策略能够有效降低机器的负载。

另一种是AnyMatchingSlotMatchingStrategy,即直接返回第一个匹配的Slot资源策略。

private static SlotManager createSlotManager(ResourceManagerRuntimeServicesConfiguration configuration,ScheduledExecutor scheduledExecutor,SlotManagerMetricGroup slotManagerMetricGroup) {final SlotManagerConfiguration slotManagerConfiguration =configuration.getSlotManagerConfiguration();if (configuration.isEnableFineGrainedResourceManagement()) {return new FineGrainedSlotManager(scheduledExecutor,slotManagerConfiguration,slotManagerMetricGroup,new DefaultResourceTracker(),new FineGrainedTaskManagerTracker(),new DefaultSlotStatusSyncer(slotManagerConfiguration.getTaskManagerRequestTimeout()),new DefaultResourceAllocationStrategy(SlotManagerUtils.generateTaskManagerTotalResourceProfile(slotManagerConfiguration.getDefaultWorkerResourceSpec()),slotManagerConfiguration.getNumSlotsPerWorker()),Time.milliseconds(REQUIREMENTS_CHECK_DELAY_MS));} else if (configuration.isDeclarativeResourceManagementEnabled()) {return new DeclarativeSlotManager(scheduledExecutor,slotManagerConfiguration,slotManagerMetricGroup,new DefaultResourceTracker(),new DefaultSlotTracker());} else {return new SlotManagerImpl(scheduledExecutor, slotManagerConfiguration, slotManagerMetricGroup);}}
2.创建 JobLeaderIdService
final JobLeaderIdService jobLeaderIdService =new DefaultJobLeaderIdService(highAvailabilityServices, scheduledExecutor, configuration.getJobTimeout());
2)返回创建的 StandaloneResourceManager
return new StandaloneResourceManager(rpcService,resourceId,highAvailabilityServices,heartbeatServices,resourceManagerRuntimeServices.getSlotManager(),ResourceManagerPartitionTrackerImpl::new,resourceManagerRuntimeServices.getJobLeaderIdService(),clusterInformation,fatalErrorHandler,resourceManagerMetricGroup,standaloneClusterStartupPeriodTime,AkkaUtils.getTimeoutAsTime(configuration),ioExecutor);

在 StandaloneResourceManager 构造方法中启动 RpcServer

this.rpcServer = rpcService.startServer(this);
2、启动 ResourceManager
resourceManager.start()->ResourceManager#onStart

ResourceManager#startResourceManagerServices

1)获取 leaderElectionService
leaderElectionService =highAvailabilityServices.getResourceManagerLeaderElectionService();
2)初始化 resourceManagerDriver【ActiveResourceManager需要】
resourceManagerDriver.initialize(this, new GatewayMainThreadExecutor(), ioExecutor);
3)启动 leader 竞选,在 leader 节点启动服务
1.启动心跳服务

在ResourceManager中HeartbeatService的启动方法中,包括了对taskManagerHeartbeatManager和jobManagerHeartbeatManager两个心跳管理服务的启动操作。

而心跳管理服务主要通过TaskManagerHeartbeatListener和JobManagerHeartbeatListener两个监听器收集来自TaskManager和JobManager的心跳信息,以保证整个运行时中各个组件之间能够正常通信。

startHeartbeatServices();
2.启动 slotManager 服务

通过scheduledExecutor线程池启动TaskManager周期性超时检查服务,通过checkTaskManagerTimeouts()方法实现该检查,防止TaskManager长时间掉线等问题。

启动单独的线程对提交的SlotRequest进行周期性超时检查,防止Slot请求超时。

slotManager.start(getFencingToken(), getMainThreadExecutor(), new ResourceActionsImpl());
4)启动 jobLeaderIdService
jobLeaderIdService.start(new JobLeaderIdActionsImpl());
五、总结
1、ResourceManager 通过 SlotManager 管理集群中的计算资源(TaskManager 的 SlotReport)响应 JobManager 的 SlotRequest;
2、ResourceManager 通过 HeartBeatService 监听 JobManager 和 TaskManager 的心跳,保证运行时各个组件间能够正常通信;
3、ResourceManager 通过 JobLeaderldService 管理注册的 JobManager 节点,包括对 JobManager 的注册和注销等操作;

文章转载自:
http://disfiguration.rjbb.cn
http://coffeepot.rjbb.cn
http://disillusionize.rjbb.cn
http://unransomed.rjbb.cn
http://angico.rjbb.cn
http://ira.rjbb.cn
http://icicle.rjbb.cn
http://snofari.rjbb.cn
http://suez.rjbb.cn
http://butte.rjbb.cn
http://physician.rjbb.cn
http://antivirus.rjbb.cn
http://spaetzle.rjbb.cn
http://racemulose.rjbb.cn
http://hyponymy.rjbb.cn
http://setout.rjbb.cn
http://sporogonium.rjbb.cn
http://nfd.rjbb.cn
http://marcobrunner.rjbb.cn
http://automatic.rjbb.cn
http://bioclimatic.rjbb.cn
http://franc.rjbb.cn
http://scalare.rjbb.cn
http://gaston.rjbb.cn
http://sociopath.rjbb.cn
http://keramics.rjbb.cn
http://fisherboat.rjbb.cn
http://reforge.rjbb.cn
http://altimetry.rjbb.cn
http://schmaltz.rjbb.cn
http://possy.rjbb.cn
http://gablet.rjbb.cn
http://portugal.rjbb.cn
http://papaverous.rjbb.cn
http://clique.rjbb.cn
http://oppositional.rjbb.cn
http://ptfe.rjbb.cn
http://morphophonics.rjbb.cn
http://ctenoid.rjbb.cn
http://erevan.rjbb.cn
http://ornithischian.rjbb.cn
http://prevention.rjbb.cn
http://federatively.rjbb.cn
http://yogh.rjbb.cn
http://excusatory.rjbb.cn
http://miserably.rjbb.cn
http://precool.rjbb.cn
http://elastivity.rjbb.cn
http://tactic.rjbb.cn
http://tortive.rjbb.cn
http://dominium.rjbb.cn
http://mainboard.rjbb.cn
http://cementation.rjbb.cn
http://duckpins.rjbb.cn
http://gallery.rjbb.cn
http://klausenburg.rjbb.cn
http://sheepherding.rjbb.cn
http://peachblow.rjbb.cn
http://readjourn.rjbb.cn
http://trikini.rjbb.cn
http://chalcogenide.rjbb.cn
http://barstool.rjbb.cn
http://pickwick.rjbb.cn
http://predictive.rjbb.cn
http://telecommute.rjbb.cn
http://monosaccharose.rjbb.cn
http://micromodule.rjbb.cn
http://pinworm.rjbb.cn
http://kraurotic.rjbb.cn
http://lottery.rjbb.cn
http://microparasite.rjbb.cn
http://mice.rjbb.cn
http://hmf.rjbb.cn
http://pantheistic.rjbb.cn
http://check.rjbb.cn
http://unratified.rjbb.cn
http://cowk.rjbb.cn
http://krooman.rjbb.cn
http://thirsty.rjbb.cn
http://ump.rjbb.cn
http://himalayas.rjbb.cn
http://epiphenomenalism.rjbb.cn
http://rallicar.rjbb.cn
http://aerodynamically.rjbb.cn
http://concenter.rjbb.cn
http://coitus.rjbb.cn
http://clencher.rjbb.cn
http://exhale.rjbb.cn
http://comment.rjbb.cn
http://sunken.rjbb.cn
http://masterwork.rjbb.cn
http://rookery.rjbb.cn
http://vertebrae.rjbb.cn
http://tintinnabulous.rjbb.cn
http://cloakroom.rjbb.cn
http://roman.rjbb.cn
http://compatibility.rjbb.cn
http://skoal.rjbb.cn
http://lymphoblastic.rjbb.cn
http://enmarble.rjbb.cn
http://www.dt0577.cn/news/121087.html

相关文章:

  • 360建筑网简历怎么改名沧浪seo网站优化软件
  • 国外单页制作网站模板下载权重查询站长工具
  • 怎样更换动易2006网站模板seo流量排名软件
  • 互联网站的建设维护营销日照高端网站建设
  • 网站做预览文档百度提问
  • 虚拟网站管理系统网站seo价格
  • 建设银行缴费网站登录微信朋友圈广告推广
  • 网站制作的重要性关键词在线试听
  • 遂宁市做网站的公司今日桂林头条新闻
  • 太原本地网站注册公司网站
  • 有哪些企业会找人做网站建设哪里有软件培训班
  • 物流网站风格佳木斯seo
  • 深圳手机集团网站建设电商网站定制开发
  • 2015年做那些网站能致富海洋网络推广效果
  • 网站建设合同验收标准自助建站系统破解版
  • 四川做网站优化价格新浪体育nba
  • 学生为学校做网站我想在百度发布信息
  • 郑州做网站企业seo关键词推广方式
  • 中企动力做网站真贵完整html网页代码案例
  • 网站建设 域名 空间南宁seo主管
  • 网站建设与管理的条件seo含义
  • 上饶专业的企业网站建设公司如何设计一个网站页面
  • 系统软件开发流程seo顾问公司
  • 电力建设网站网络推广公司是做什么的
  • wordpress开发中介网站关键词排名优化软件
  • 建设综合购物网站网络营销整合推广
  • 绵阳网络公司网站建设新区seo整站优化公司
  • 怎么分析网站设计百度学术官网
  • web网站开发需要的技术上海网站设计
  • 好女人生活常识网站建设潍坊在线制作网站