• 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秒

  • 相关阅读:
    优先队列(堆)
    从CPU管理到进程的引入
    倾听程序员
    数据库设计
    数据库设计之数据库,数据表和字段等的命名总结
    Set容器--HashSet集合
    Java Collection开发技巧
    关于事务
    关于触发器
    windows phone(成语典籍游戏开发)
  • 原文地址:https://www.cnblogs.com/gongxianjin/p/15625140.html
Copyright © 2020-2023  润新知