Skip to content

Extend eblob summary statistics for defragmentation status #128

@shaitan

Description

@shaitan

Current state

Currently, eblob summary has follow statistics:

  • records_removed - total number of removed records in all blobs
  • records_removed_size - total size of all removed records in all blobs
  • want_defrag - sum of want_defrag of all blobs

Problem

There is no statistics that shows the need and potential profit from defragmentation:

  • want_defrag is useless because it mixes want_defrag of all blobs
  • records_removed and records_removed_size are about all removed records from all blobs and don't show how many space will be freed by defragmentation

What is wanted to be changed

Add new statistics or change current statistics if it is possible. These statistics should show:

  • the need for defragmentation: 0 - defragmentation is useless now, 1 - defragmentation will make a profit
  • current profit from defragmentation: how many resources will be freed (disk space, fd etc.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions