简体   繁体   English

如何检测旧的 Cadence 版本是否仍在生产环境中运行并且可以安全删除?

[英]How to detect if an older Cadence version is still running in Production and safe to delete?

What is the best mechanism to detect if an older Cadence version branch is still running in Production and safe to delete?检测旧 Cadence 版本分支是否仍在生产环境中运行并且可以安全删除的最佳机制是什么? It seems like Cadence's logger is idempotent and won't log > 1 time, so there is no way to tell from logs/data that a workflow's version codepath is safe to remove.似乎 Cadence 的记录器是幂等的,不会记录 > 1 次,因此无法从日志/数据中判断工作流的版本代码路径是否可以安全删除。

Thanks for the question!感谢您的提问!

We don't have a support for this right now but I created tasks to support following 3 metrics:我们现在不支持此功能,但我创建了支持以下 3 个指标的任务:

  • Cadence server services (history, matching, worker, frontend) versions Cadence 服务器服务(历史、匹配、工作者、前端)版本
  • Cadence client metrics (which client library the user is using) Cadence 客户端指标(用户正在使用哪个客户端库)
  • Workflow type version metrics (users' own workflow versions)工作流类型版本指标(用户自己的工作流版本)

Hopefully soon, we will support this希望很快,我们会支持这个

cadence server service metrics is available in our release branches and we plan on keeping this updated every time. cadence 服务器服务指标在我们的发布分支中可用,我们计划每次都保持更新。

Cadence client metrics is available. Cadence 客户端指标可用。 You can specifically turn it on/off per host but note that once it's off that host cannot emit version metrics unless you restart it.您可以针对每个主机专门打开/关闭它,但请注意,一旦它关闭,除非您重新启动它,否则该主机将无法发出版本指标。

Workflow version metrics is available in the very near future (merged into master but not yet in a release branch).工作流版本指标在不久的将来可用(合并到 master 但尚未在发布分支中)。 It will check every 10m for the domains you enable and emit the number of workflow types running a particular workflow version at that moment in time.它将每 10m 检查一次您启用的域,并发出当时运行特定工作流版本的工作流类型的数量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM