Skip to content

rgw: add layout generation info to "bucket stats" - #54197

Merged
ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-bucket-stats-add-gen
Nov 6, 2023
Merged

ivancich merged 1 commit into
ceph:mainfrom
ivancich:wip-bucket-stats-add-gen

Conversation

@ivancich

@ivancich ivancich commented Oct 25, 2023 •

Copy link
Copy Markdown
Member

Adds a new field to bucket stats. Also rearranges existing information slightly to make more sense. Also removes the redundancy of showing bucket versioning status in two different ways.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@ivancich

Copy link
Copy Markdown
Member Author

jenkins test api

Adds a new field to bucket stats. Also rearranges existing information
slightly to make more sense. Also removes the redundancy of showing
bucket versioning status in two different ways.

Signed-off-by: J. Eric Ivancich <[email protected]>
@mattbenjamin

Copy link
Copy Markdown
Contributor

this is a nice improvement

@cbodley

cbodley commented Oct 26, 2023

Copy link
Copy Markdown
Contributor

are you trying to locate individual bucket index shard objects in rados based on this index generation?

there's already a bucket layout command that dumps the entire layout as json, which gives you a much more complete view of that structure (including index type, reshard status, bilogs for multisite, etc)

@ivancich
ivancich requested a review from cbodley November 1, 2023 18:37
@ivancich ivancich added needs-qa wip-eric-testing-1 for ivancich testing labels Nov 1, 2023
@ivancich

ivancich commented Nov 6, 2023

Copy link
Copy Markdown
Member Author

are you trying to locate individual bucket index shard objects in rados based on this index generation?

there's already a bucket layout command that dumps the entire layout as json, which gives you a much more complete view of that structure (including index type, reshard status, bilogs for multisite, etc)

Yeah, this stems from a tool I created to help me investigate restoring lost indices more efficiently. Rather than sequence through an old buggy version and whatnot, my tool figures out the bucket index objects and removes the entries in their omaps. To generate the bucket index objects, I need to know the bucket's id, number of shards, and generation, which with this mod I can get from bucket stats.

I hadn't been aware of the bucket layout sub-command. I see it can give me number of shards and generation, but not the id.

Do you object to the bucket stats subcommand including the generation?

I have to admit bucket stats is evolved into a misnomer given all the non-stats info it gives about a bucket. I don't know if we should rethink things further.

@cbodley

cbodley commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

I have to admit bucket stats is evolved into a misnomer given all the non-stats info it gives about a bucket.

my thoughts exactly :)

Do you object to the bucket stats subcommand including the generation?

nope. i've approved this, as it's consistent with the current usage 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants