How to check liveness of agent?

未关闭
#625 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
kafka, python

调研方向

The issue asks which signal best shows a Faust agent is alive when its topic is idle, and it does not name any file, test or entry point. Start from the linked timers section of the Faust user guide (tasks.html) and the agent documentation to see what the framework already exposes. Done would be a maintainer-agreed recommendation, or a docs section, that says which signal to use. Expect the thread to need a maintainer decision first.

由索引模型根据 Issue 内容生成。

描述

We want to implement a liveness check of our Faust application. What is the best gauge of "liveness" of a Faust agent?

Background

The agent is consuming from a topic where rarely messages are produced. Normally, commits or sends would be a good measure for liveness. But in this case, it is unclear what processes or events are still running when the agent is in this "idle" state.

Proposed solutions

The first solution could be using timers (https://faust.readthedocs.io/en/latest/userguide/tasks.html#timers). But what code to execute here to prove that the agent is still happy?

The second solution would be to create a heartbeat topic where messages arrive regularly. However we hope there is a simpler solution to simply check for liveness.

主要语言
Python
星标
1.9k
派生
205
平均合并
2 小时 2 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

faust-streaming/faust 的其他 Issue

查看 faust-streaming/faust 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。