Project

General

Profile

Feature #6887

BE: report total pg count

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backend (REST API)
Target version:
% Done:

0%

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

Description

Currently counts of pgs in various states are sent, but the total count of PGs is not. Since PGs can have multiple states, it's not synthesizable.

6887-example.txt View - Example output from /cluster/<id>/health_counters (1.91 KB) John Spray, 11/25/2013 08:45 AM

6887-example-2.txt View (1.12 KB) John Spray, 11/25/2013 11:57 AM

History

#1 Updated by John Spray almost 8 years ago

Hmm, anecdotally the state counts do seem to add up to the total PG count, I have 768 and here's the 'ceph status' snippet when some varying states are in play:

  "pgmap": { "pgs_by_state": [
            { "state_name": "active",
              "count": 154},
            { "state_name": "active+clean",
              "count": 438},
            { "state_name": "active+remapped+wait_backfill",
              "count": 18},
            { "state_name": "active+recovery_wait",
              "count": 8},
            { "state_name": "active+remapped",
              "count": 98},
            { "state_name": "remapped+peering",
              "count": 52}],

#2 Updated by John Spray almost 8 years ago

Oh never mind, I see that the calamari code is munging this before handing it back, so the total count is indeed being lost.

#3 Updated by John Spray almost 8 years ago

Added an 'all' section in pg counters, see attached.

#4 Updated by Yan-Fa Li almost 8 years ago

As discussed during standup, we're actually talking about this API entry point

http://mira035.front.sepia.ceph.com/api/v1/cluster/1/osd

and adding the total count of PGs per pg_states structure. Dan and I made assumptions and forgot to document them.

#5 Updated by John Spray almost 8 years ago

Ahem. Take 2.

#6 Updated by Ian Colle almost 8 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF