Skip to content

DB resilience when there is a power loss #187

@riklempens

Description

@riklempens

We received this this issue from Ubiquiti via email on November 19 2023.

DB resilience when there is a power loss

  • we have to check existence of .lock file during DB start and handle it
  • we have to check existence of empty .max_series_id and remove it
  • same for empty series.dat and corrupt_series.dat
  • there is practically no issue with Postgres under the same circumstances
  • you can periodically kill power on server/droplet and you will probably hit these issues rather soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions