Autoreplicate May Consume All Local Storage Space #185
Labels
Bug
Indicates unexpected or undesired behaviors
Priority: Backlog
Tasks that are not pressing, but to be tracked and revisited
Describe the bug
Autoreplicate creates a local tarball of the the database data and metadata at a set time interval.
However, there are no checks for how often this runs, nor any infrastructure for rotating/removing old database backups. Because of this, a misconfiguration (or just a very long running server with a large database) can potentially consume all the available space in the target location silently.
To Reproduce
At configuration time, set a small number for the autoreplicate interval, (e.g. 5) with the units in seconds.
for example:
This will generate a new tarball every 5 seconds, until the server is killed.
Expected behavior
Ideally we should have some guardrails to prevent over-aggressive runs of the autoreplication thread (e.g. a loud warning or a graceful crash if we have an interval of a few seconds) as well as some defaults number of maximum snapshots/backups to be maintained and automatically removed.
The text was updated successfully, but these errors were encountered: