Skip to content

GC Containers and volumes when present in the worker but not in the DB #3600

@cirocosta

Description

@cirocosta

Hey,

Once we got #2588 in, we added support for GCing when there's a mismatch between what is in the worker and what is in the DB when

  • DB has containers/volumes that a worker doesn't have,

But we don't do the other "side" of the diff:

  • a worker having containers/volumes that the DB doesn't have.

This means that if worker-0, for some reason, has volumes that the DB doesn't have, those volumes will never be cleaned up unless someone manually discovers that diff and performs the removals.

A scenario where this could occur:

  • the user takes backup of the DB at t0,
  • time goes on ... the worker has some volumes at t1,
  • DB gets restored to t0,
  • the worker will forever have the extra volumes there.

Do you think this could have repercussions in the way we create containers/volumes? E.g., in the case of ephemeral check containers?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions