Skip to content

Prune service log buffers #539

Open
Open
@benhoyt

Description

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    25.04Planned for the 25.04 cycle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions