How to check liveness of agent?

Aperta
#625 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
kafka, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1.9k
Fork
205
Merge medio
2h 2m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di faust-streaming/faust

Tutte le issue di faust-streaming/faust

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.