Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define Expected Bee Node Exit Scenarios and Improve Exit Logging #5055

Open
aranyia opened this issue Mar 18, 2025 · 1 comment
Open

Define Expected Bee Node Exit Scenarios and Improve Exit Logging #5055

aranyia opened this issue Mar 18, 2025 · 1 comment
Assignees

Comments

@aranyia
Copy link
Contributor

aranyia commented Mar 18, 2025

Summary

When operating nodes, especially on a larger scale, employing orchestration tools like Kubernetes with Docker containers, the Bee node status can be difficult to gauge or can be ambiguous based on response from the Bee API status endpoints and log contents.

Motivation

Clear and predictable points when a Bee node process is supposed to stop could help detect operational issues earlier.

For example when running in a Docker container, the Bee node process stopping would cause the container to stop, which could be a clear signal to dependent systems that the Bee node instance is not operational and cannot serve traffic.

Logging could be also reorganized around this, always indicating a clear reason for stopping the Bee node before exiting the process. This would be useful not only for easier log analysis but open up the potential to perform automated steps based on last log events.

Implementation

There could be number of scenarios where the Bee node process is expected to reach an exit state. In addition, clear logs should precede the exit event.

Drawbacks / Alternatives

If a similar outcome can be achieved by other probes like the readiness endpoint, alternatives can be suggested. But in that case it should be clear and evident and well documented how those probes should be utilized to achieve the level of consistent behavior (predictable node status, readiness for traffic) described above.

Some other issues that can be relevant here

@aranyia
Copy link
Contributor Author

aranyia commented Mar 18, 2025

@nikipapadatou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants