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

Prune service log buffers #539

Open
benhoyt opened this issue Dec 18, 2024 · 0 comments
Open

Prune service log buffers #539

benhoyt opened this issue Dec 18, 2024 · 0 comments
Labels
25.04 Planned for the 25.04 cycle

Comments

@benhoyt
Copy link
Contributor

benhoyt commented Dec 18, 2024

If you've started lots of services and then stopped them, the memory used by the service information (particularly the log ring buffer) stays around and is never pruned. Pebble is used in several contexts including memory-constrained containers and small devices, so we should design and implement a way to prune these when the services has been stopped for a while or there are too many services. Obviously we can't prune running services; we may be able to shrink/deallocate the log buffers for services on backoff state if they've been in that state for too long.

For comparison, old (done) changes are pruned when there are more than 500 of them or they've been done for more than 7 days (the interval for checking whether to prune is 10m).

@benhoyt benhoyt added the 25.04 Planned for the 25.04 cycle label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
25.04 Planned for the 25.04 cycle
Projects
None yet
Development

No branches or pull requests

1 participant