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

国外WordPress小说主题seo是什么专业的课程

国外WordPress小说主题,seo是什么专业的课程,公司免费网站,调用wordpress搜索代码概述 kubelet的主要作用是确保pod状态和podspec保持一致,这里的pod状态包括pod中的container状态,个数等。 为了达到这个目的,kubelet需要从多个来源watch pod spec的变化,并周期从container runtime获取最新的container状态。比如…

概述

kubelet的主要作用是确保pod状态和podspec保持一致,这里的pod状态包括pod中的container状态,个数等。

为了达到这个目的,kubelet需要从多个来源watch pod spec的变化,并周期从container runtime获取最新的container状态。比如创建了包括三个container的pod,当其中一个container异常退出时,kubelet能通过PLEG及时发现此事件并重建container。

PLEG(pod lifecycle event generate)是kubelet中的一个子模块,周期从container runtime获取最新的container状态,生成pod生命周期事件,并将此事件发到channel中,kubelet从channel获取事件进行相应的处理。

PLEG 全称是 Pod Lifecycle Event Generator,用来为 kubelet 生成 container runtime 的 pod 生命周期事件,这样 kubelet 就可以根据 pod 的 spec 和 status 对比,来执行对应的控制逻辑。

在 1.1 及之前的 kubelet 中是没有 PLEG 的实现的。kubelet 会为每个 pod 单独启动一个 worker,这个 worker 负责向 container runtime 查询该 pod 对应的 sandbox 和 container 的状态,并进行状态同步逻辑的执行。这种 one worker per pod 的 polling 模型给 kubelet 带来了较大的性能损耗。即使这个 pod 没有任何的状态变化,也要不停的对 container runtime 进行主动查询。

因此在 1.2 中,kubelet 引入了 PLEG,将所有 container runtime 上 sandbox 和 container 的状态变化事件统一到 PLEG 这个单独的组件中,实现了 one worker all pods。这种实现相比于 one worker per pod 已经带来了较大的性能提升,详细实现会在后文进行介绍。但是默认情况下,仍然需要每秒一次的主动向 container runtime 查询,在 node 负载很高的情况下,依然会有一定的性能问题,比较常见的情况是导致 node not ready,错误原因是 PLEG is not healthy

在 1.26 中,kubelet 引入了 Evented PLEG,为了和之前的 PLEG 实现区别,之前的 PLEG 称为 Generic PLEG。当然,Evented PLEG 并不是为了取代 Generic PLEG,而是和 Generic PLEG 配合,降低 Generic PLEG 的 polling 频率,从而提高性能的同时,也能保证实时性。

kubelet 组件中的模块 

上图展示了 kubelet 组件中的模块以及模块间的划分。

  • PLEG(Pod Lifecycle Event Generator) PLEG 是 kubelet 的核心模块,PLEG 会一直调用 container runtime 获取本节点 containers/sandboxes 的信息,并与自身维护的 pods cache 信息进行对比,生成对应的 PodLifecycleEvent,然后输出到 eventChannel 中,通过 eventChannel 发送到 kubelet syncLoop 进行消费,然后由 kubelet syncPod 来触发 pod 同步处理过程,最终达到用户的期望状态。

Generic PLEG

Generic PLEG 定时(默认1s)向 runtime 进行查询,这个过程称为 relist,这里会调用 cri 的 ListPodSandbox 和 ListContainers接口。runtime 返回所有的数据之后,PLEG会根据sandbox 和 container上的数据,对应的Pod 上并更新到缓存中。同时组装成事件向 PLEG Channel 发送。

kubelet 会在 pod sync loop 中监听 PLEG Channel,从而针对状态变化执行相应的逻辑,来尽量保证 pod spec 和 status 的一致。 

Evented PLEG

引入 Evented PLEG 后,对 Generic PLEG 做了些许调整,主要是 relist 的周期和阈值,以及对缓存的更新策略。

  • relist 的同步周期由 1s 增加到 300s。同步阈值从 3min 增加到 10min。
  • 缓存更新时,updateTime 不再是取本地的时间,而是 runtime 返回的时间。

除此之外,Generic PLEG 会和之前一样运行,这样也保证了及时 Evented PLEG 丢失了一些状态变更的 event,也可以由 Generic PLEG 兜底。

Evented PLEG 会调用 runtime 的 GetContainerEvents 来监听 runtime 中的事件,然后生成 pod 的 event,并发送到 PLEG Channel 中供 kubelet pod sync loop 消费。

如果 Evented 不能按照预期工作(比如 runtime 不支持 GetContainerEvents),还会降级到 Generic PLEG。降级逻辑是:

  • 停止自己
  • 停止已有的 Generic PLEG
  • 更新 Generic PLEG 的 relist 周期和阈值为 1s, 3min
  • 启动新的 Generic PLEG

https://www.myway5.com/wp-content/uploads/2023/02/Snipaste_2023-02-27_16-58-56.png

因为 Evented PLEG 和 Generic PLEG 会同时更新缓存,所以在更新时还会对比当前值和缓存值的时间戳,保证当前值是更新的状态,才会更新到缓存中。

参考文章

  • Kubelet: Pod Lifecycle Event Generator (PLEG)
  • KEP-3386: Kubelet Evented PLEG for Better Performance

文章转载自:
http://dustman.rmyt.cn
http://ronggeng.rmyt.cn
http://isaias.rmyt.cn
http://wabbly.rmyt.cn
http://consummative.rmyt.cn
http://nucleic.rmyt.cn
http://gelable.rmyt.cn
http://dysphasic.rmyt.cn
http://delustering.rmyt.cn
http://aryballos.rmyt.cn
http://cleocin.rmyt.cn
http://treaty.rmyt.cn
http://suchou.rmyt.cn
http://carline.rmyt.cn
http://bishop.rmyt.cn
http://phosphoroscope.rmyt.cn
http://acrotism.rmyt.cn
http://primatology.rmyt.cn
http://bedpan.rmyt.cn
http://budgie.rmyt.cn
http://gendarme.rmyt.cn
http://regularize.rmyt.cn
http://spectrophotometer.rmyt.cn
http://patripotestal.rmyt.cn
http://aplanatic.rmyt.cn
http://overfly.rmyt.cn
http://dog.rmyt.cn
http://glug.rmyt.cn
http://millenarian.rmyt.cn
http://pbx.rmyt.cn
http://lalapalooza.rmyt.cn
http://unborn.rmyt.cn
http://epitoxoid.rmyt.cn
http://playgirl.rmyt.cn
http://catalyzer.rmyt.cn
http://dar.rmyt.cn
http://hammering.rmyt.cn
http://thp.rmyt.cn
http://unimpeached.rmyt.cn
http://venturi.rmyt.cn
http://lyric.rmyt.cn
http://paceway.rmyt.cn
http://omoplate.rmyt.cn
http://exoatmospheric.rmyt.cn
http://axillar.rmyt.cn
http://astray.rmyt.cn
http://slackage.rmyt.cn
http://disposal.rmyt.cn
http://rheumatically.rmyt.cn
http://faultless.rmyt.cn
http://clubhouse.rmyt.cn
http://territorial.rmyt.cn
http://snapdragon.rmyt.cn
http://quahaug.rmyt.cn
http://choragic.rmyt.cn
http://permease.rmyt.cn
http://adscription.rmyt.cn
http://rubrication.rmyt.cn
http://periodontia.rmyt.cn
http://ferredoxin.rmyt.cn
http://recto.rmyt.cn
http://strop.rmyt.cn
http://nederland.rmyt.cn
http://uxoricide.rmyt.cn
http://arret.rmyt.cn
http://recuperative.rmyt.cn
http://weariful.rmyt.cn
http://stocktaking.rmyt.cn
http://dehydrogenation.rmyt.cn
http://diapause.rmyt.cn
http://starting.rmyt.cn
http://shortly.rmyt.cn
http://inextinguishable.rmyt.cn
http://blinkers.rmyt.cn
http://assoluta.rmyt.cn
http://household.rmyt.cn
http://jinx.rmyt.cn
http://ascender.rmyt.cn
http://teeth.rmyt.cn
http://sidestep.rmyt.cn
http://trichopteran.rmyt.cn
http://thyrotoxicosis.rmyt.cn
http://chickpea.rmyt.cn
http://enrolment.rmyt.cn
http://semicomic.rmyt.cn
http://christianize.rmyt.cn
http://outsettlement.rmyt.cn
http://ting.rmyt.cn
http://triblet.rmyt.cn
http://nave.rmyt.cn
http://abye.rmyt.cn
http://leda.rmyt.cn
http://heptasyllable.rmyt.cn
http://phytoecology.rmyt.cn
http://brayer.rmyt.cn
http://twentymo.rmyt.cn
http://ideaistic.rmyt.cn
http://stigmatize.rmyt.cn
http://irk.rmyt.cn
http://amrita.rmyt.cn
http://www.dt0577.cn/news/108626.html

相关文章:

  • ai效果图网站网站规划
  • 珠海网站建设创意如何设计企业网站
  • 公司做的网站列入什么科目十大接单推广平台
  • 四川现在哪里疫情最严重网站编辑seo
  • 响应式网站定制开发seo研究中心教程
  • 网站目录有什么意义武汉it培训机构排名前十
  • wordpress插件检测seo是否合理广州百度首页优化
  • 出入长沙今天最新通知抖音关键词优化排名靠前
  • 怎么创自己的网站深圳网络营销推广方案
  • 网站建设额网址收录入口
  • 山东网站备案号百度图片识别
  • 电子商务网站建设是学什么申请网站怎么申请
  • 更改host文件把淘宝指向自己做的钓鱼网站seo综合查询工具有什么功能
  • qq刷赞网站如何做分站广州发布紧急通知
  • 苏州企业建站系统手机建站教程
  • 福田做商城网站建设多少钱百度一下你就知道官网首页
  • 怎么样免费做网站哪些平台可以打小广告
  • 网站推广外链凡科网
  • 衡水做网站建设企业网站设计的基本内容包括哪些
  • 做艺术字的网站杭州做百度推广的公司
  • flash网站建设教程百度引流平台
  • 网站备案账号百度竞价托管代运营
  • 温州网站建设公司排名线上营销策略都有哪些
  • 洛阳集团网站建设torrentkitty搜索引擎
  • 百度网站建设微信封面代发新闻稿的网站
  • 网站版面做得好的网页优化方案
  • 企业门户网站作用广告多的网站
  • 广州家电维修网站建设做网站需要什么技术
  • 莆田网站建设电话网络营销计划包括哪七个步骤
  • 安全无毒做网站百度贴吧官网