Skip to content

Setting limit on keep_sender: {type: not_replicated} #896

@misuzu

Description

@misuzu

When the remote server is unavailable, snapshots that have not been replicated keep piling up and when the remote server is available again it takes ages to replicate.

What if instead zrepl will always keep first unreplicated snapshot + the ones declared by keep_receiver and will only keep count last snapshots?

Part of my config for reference:

  name: remote
  pruning:
    keep_receiver:
    - grid: 1x1h(keep=all) | 24x1h | 30x1d | 6x30d
      regex: ^zrepl_
      type: grid
    keep_sender:
    - type: not_replicated
    - count: 10
      regex: ^zrepl_
      type: last_n
    - negate: true
      regex: ^zrepl_
      type: regex
  snapshotting:
    interval: 10m
    prefix: zrepl_
    type: periodic
  type: push

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions