Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Observe disk usage and shutdown on <1GB space left #12399

@bkchr

Description

@bkchr

We should have some kind of service running in the node that can observe given paths. For each of the given paths we should ensure that Xbytes is left. Where X is configurable and could be set to 1GB by default. The service should run as essential task, so that the node shuts down when the service ends. The service should also directly return an error on startup if we are already below the configured limits. We should also introduce some CLI flag to ignore the limit or to set the limit.

This service should be running with the path of the db and in Polkadot also of with the path of the Parachains db. It would ensure that we are not running out of space and thus, may breaking the database.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions