Project

General

Profile

Feature #5852

ceph pg dump pgs_brief

Added by Dan Mick about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:

Description

The Calamari dashboard could use a concise mapping from PG to OSDs; ceph pg dump is more
info than we need, and ceph pg map requires a pgid; if there were a ceph pg mapall, we could
get just that PG<->OSD mapping and only ask for detail when relevant.

History

#1 Updated by Dan Mick about 8 years ago

  • translation missing: en.field_story_points set to 3.00

#2 Updated by Dan Mick about 8 years ago

  • translation missing: en.field_story_points deleted (3.00)

It would be nice if the state were also included for easy "problem pg" filtering. perhaps something like the dump_stuck algorithms would be useful too.

#3 Updated by Dan Mick about 8 years ago

  • translation missing: en.field_story_points set to 3.00

#4 Updated by Dan Mick about 8 years ago

  • Subject changed from ceph pg mapall to ceph pg dump pgs_brief
  • Status changed from 12 to In Progress

Implemented "pg dump pgs_brief"; sample output:

dumped pgs_brief in format json-pretty

[ { "pgid": "2.5",
"state": "active+remapped",
"up": [
0],
"acting": [
0,
1]}, { "pgid": "1.6",
"state": "active+remapped",
"up": [
0],
"acting": [
0,
1]}, { "pgid": "0.7",
"state": "active+replay+remapped",
"up": [
0],
"acting": [
0,
1]}, { "pgid": "2.4",
"state": "active+remapped",
"up": [
0],
"acting": [
0,
1]},

Each pg entry goes from ~1200 ytes to ~70 bytes. Seems worthwhile.

#5 Updated by Dan Mick about 8 years ago

could obviously compress things a lot with state bitmaps too if desired.

#6 Updated by Dan Mick about 8 years ago

Noah, it's in wip-pgdump-brief if you want to play.

#7 Updated by Dan Mick about 8 years ago

  • Status changed from In Progress to Resolved

commit:42582f02f9612f9bdb3d0e5415c12240c52dad50

Also available in: Atom PDF