zoukankan      html  css  js  c++  java
  • kubeEdge的MetaManager模块简介

    MetaManager

    是edged和edgehub之间的消息处理器,它还负责将元数据存储到轻量级数据库SQLite或从中检索元数据(metadata)。

    根据以下不同的operation接收不同类型的消息:

    ²  Insert

    ²  Update

    ²  Delete

    ²  Query

    ²  Response

    ²  NodeConnection

    ²  MetaSync

    Insert Operation

    (when new objects are created)

    插入操作请求由edgehub从云接收—>分派到metamanager—>保存在sqlite中并将异步消息发送到edged—>edged处理Insert请求(例如通过启动pod并在消息中填充response)—>metamanager检查消息,提取resp并发送回edgehub—>edgehub将resp发送回云。

    Update Operation

    (can happen on objects at the cloud/edge)

    Delete Operation

    (when objects like pods are deleted from the cloud)

    Query Operation(查询)

    可以在边缘本地查询元数据metadata,也可以从cloud查询某些远程资源(例如config maps/secrets)。根据分隔符“ /”,可以将消息资源分为三部分(resKey,resType,resId)。

    Response Operation

    Responses are returned for any operations performed at the cloud/edge.

    NodeConnection Operation

    NodeConnection从edgeHub接收操作消息,以提供有关云连接状态的信息。metamanager会在内存中跟踪此状态,并在某些操作中使用它,例如对云的远程查询。

    MetaSync Operation

    此操作信息会被metamanager定期发送,以同步边缘节点上运行的pod的状态。同步间隔是可配置的,在conf/edge.yaml中,默认60秒

  • 相关阅读:
    27、springboot整合RabbitMQ(1)
    26、springboot与消息
    25、springboot与缓存整合Redis
    24、springboot与缓存(2)
    linux之参数实用讲解
    linux之创建临时文件的方法
    【转】linux之shfit
    linux之stat
    Shell 环境中的输入输出重定向
    Linux下samba的安装与配置
  • 原文地址:https://www.cnblogs.com/gongxianjin/p/15625140.html
Copyright © 2011-2022 走看看