关于开发者:Dragonfly-最新版本-v209-发布

11次阅读

共计 4829 个字符,预计需要花费 13 分钟才能阅读完成。

Dragonfly 最新正式版本 v2.0.9 曾经公布!感激 Dragonfly 的贡献者们,同时也感激默默反对 Dragonfly 我的项目的各个私有云团队。欢送拜访 d7y.io[1] 网站来理解详情,上面具体介绍 v2.0.9 版本带来了那些更新。

性能

1、下载工作能够依据优先级(Priority)进行下载。优先级能够在下载工作时 Cli 中作为参数传入,也能够在 Manager Console 设置对应利用关联的优先级。具体不同优先级的性能能够参考文档 priority protoc definition[2]。

2、Scheduler 配置新增 PieceDownloadTimeout 字段,做用是当某个 Piece 下载超过 Timeout 时,设置对应的 Task 状态变更为失败。避免异样 Task 元信息残留在 Scheduler 中。

3、gRPC 服务新增 Health Service 和 Reflection 服务。

4、Manager 反对 Redis 哨兵模式(sentinal model)

5、重构 Dynconfig 模块移除 json.Unmarshal 操作,进步 Dynconfig 模块运行时效率。并且反对通过健康检查的形式过滤异样地址服务。

6、修复以后无可用服务时,gRPC 未构建哈希环所造成的异样。

7、晚期版本当同一个 Task 的多个 Piece 并发下载时,Scheduler 会调度多个 Parent 给以后 Peer 进行下载,但多个 Piece 根本都会从单个 Parent 进行下载。以后版本更改多个 Piece 能够从不同的 Parent 并发下载,能够避免流量集中在局部热点 Parent,进步下载效率的同时也进步了带宽均匀利用率。

8、Peer 调用 Manager 获取匹配的 Scheduler Cluster 的时候。如果没有匹配到任何 Scheduler Cluster,那么 Manager 会返回所有的 Scheduler Cluster 提供给 Peer。Peer 会应用 Health Check 通过的 Scheduler Cluster 地址供后续下载调度应用。

9、反对 ORAS[3] 网客户端的回源下载协定,扩大容器镜像生态反对。

10、减少 UDP Ping 包的反对和虚构网络拓扑的 gRPC Protoc 定义。将来会新增基于网络探测构建虚构网络拓扑构造,进步调度算法的精确度。

11、实现 V2 版本的 P2P 协定[4] 网的定义。Scheduler 和 Manager 对应实现了 V2 版本的 P2P 协定的性能。将来会基于 V2 版本的 P2P 协定和 Rust 语言重写 Dfdaemon,进步客户端性能的同时可能依赖更加规范且扩展性更强的 V2 版本的 P2P 协定。

12、OSS 客户端回源协定新增基于 STS 长期拜访凭证来拜访 OSS 源站。

13、Scheduler 新增 Host TTLandhostGCInterval 配置,次要作用于 Host 元数据的开释。能够保障在 Peer 主机异样退出的状况下,依然能够开释掉异样的 Host 元数据,避免脏数据残留。

14、Manager 的 Searcher 模块新增依据 CIDR[5] 条件去筛选以后 Peer 匹配的 Scheduler Cluster,提供更准确的匹配计算形式。

15、重构 V1 版本 P2P 协定的 Metric,新减少了 V2 版本 P2P 协定的 Metric,并且依据新的 Metrics 更新 Helm Charts[6] 的 PrometheusRule 对应的告警规定。重新整理 Dragonfly Grafana Dashboards[7] 不便用户能够一键导入 Dashboards,观测 P2P 网络流量以及服务相干数据。

具体文档能够参考 Monitoring[8],Grafana Dashboard 保护在我的项目 Dragonflyoss/Monitoring[9] 中。版本更新蕴含的更多细节能够参考 ChangeLog[10]。

破坏性变更

老版本 Manager 因为应用了默认的 JWT Key 生成 JWT Token 会引起安全性问题,具体能够参考 security issues[11]。所以 Manager 服务配置文件新增了 JWT 配置[12]。

当老版本 Manager 降级过程中须要在新版本 Manager 的配置文件中新增 JWT Key 配置,并且 JWT Key 是须要用户本人生成,具体 JWT Key 如何配置能够参考 Setting it in the Manager Configuration[13]。

私有云厂商反对

Alibaba Cloud(阿里云)– 阿里云提供装置 Dragonfly 1.x 在容器镜像仓库 Container Registry[14]。应用文档能够参考 Use P2P Acceleration in ASK[15]。举荐应用更加高效且稳固的 Dragonfly 2.0[16],部署文档参考 Setup Dragonfly in Kubernetes[17]。

Google Cloud Platform(GCP)– GCP 提供一键点击部署 Dragonfly 在 Google Kubernetes Engine(GKE)[18] 的 Marketplace[19],具体文档能够参考 Click to Deploy Dragonfly[20]。

Volcano Engine(火山引擎)– 火山引擎在容器服务(VKE and 和镜像仓库 (CR) 中集成了 CNCF 孵化我的项目 Dragonfly。欢送拜访 VKE[21] & CR[22] 理解更多。

Baiidu AI Cloud(百度智能云)– 百度智能云提供在 Cloud Container Engine(CCE)[24] 一键部署 P2P 减速服务,其能力来自于 Dragonfly。

|相干链接|

Dragonfly 社区官网网站:

[1] Dragonfly 官网:https://d7y.io/
[2] Priority Protoc Definition:https://github.com/dragonflyoss/api/blob/main/pkg/apis/common/v2/common.proto#L74
[3] ORAS:https://github.com/oras-project/oras
[4] V2 版本的 P2P 协定:https://github.com/dragonflyoss/api/tree/main/proto
[5] CIDR:https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
[6] Helm Charts:https://github.com/dragonflyoss/helm-charts
[7] Dragonfly Grafana Dashboards:https://grafana.com/grafana/dashboards/?search=dragonfly
[8] Monitoring:https://d7y.io/docs/concepts/observability/monitoring
[9] Dragonfly Monitor:https://github.com/dragonflyoss/monitoring
[10] ChangeLog:https://github.com/dragonflyoss/Dragonfly2/blob/main/CHANGELOG.md
[11] Security issues:https://github.com/dragonflyoss/Dragonfly2/security/advisories/GHSA-hpc8-7wpm-889w
[12] JWT 配置:https://github.com/dragonflyoss/Dragonfly2/pull/2161
[13] Setting it in the Manager configuration:https://github.com/dragonflyoss/d7y.io/blob/main/docs/reference/configuration/manager.md?plain=1#L56
[14] 阿里云镜像仓库:https://www.alibabacloud.com/product/container-registry
[15] Use P2P Acceleration in ASK:https://www.alibabacloud.com/help/en/container-registry/lates…
[16] Dragonfly 仓库:https://github.com/dragonflyoss/Dragonfly2
[17] Setup Dragonfly in Kubernetes:https://d7y.io/docs/getting-started/quick-start/kubernetes/
[18] Google Kubernetes Engine(GKE):https://cloud.google.com/kubernetes-engine
[19] Google Cloud Platform(GCP)Marketplace:https://console.cloud.google.com/marketplace/product/google/d…
[20] Google Cloud Platform(GCP)Dragonfly Marketplace:https://console.cloud.google.com/marketplace/product/google/d…
[21] 火山引擎容器服务(VKE):https://www.volcengine.com/product/vke
[22] 火山引擎镜像仓库(CR):https://www.volcengine.com/product/cr
[23] 百度智能云容器服务(CCE):https://intl.cloud.baidu.com/product/cce.html
[24]Dragonfly 官网:https://d7y.io/
[25]Dragonfly Charts 仓库:https://github.com/dragonflyoss/helm-charts。
[26]Dragonfly Monitor 仓库:https://github.com/dragonflyoss/monitoring。
[27]阿里云容器仓库:https://www.alibabacloud.com/product/container-registry。
[28]阿里云容器服务 (ACK)https://www.alibabacloud.com/product/kubernetes。
[29]Google Kubernetes Engine(GKE)https://cloud.google.com/kubernetes-engine。
[30]Google Cloud Platform(GCP)Dragonfly Marketplace:https://console.cloud.google.com/marketplace/product/google/d…
[31] 火山引擎容器服务 (VKE)https://www.volcengine.com/product/vke
[32] 火山引擎容器仓库 (CR)https://www.volcengine.com/product/cr
[33] 百度智能云容器服务(CCE)https://intl.cloud.baidu.com/product/cce.html

Dragonfly Star 一下✨:
https://github.com/dragonflyoss/Dragonfly2

本周举荐浏览

Dragonfly 基于 P2P 的文件和镜像散发零碎

Dragonfly 中 P2P 传输协定优化

Occlum Meetup – 一起来聊秘密计算 TEE

展台招募|“SOFA 五周年”开源集市等你来!

正文完
 0