https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2018-08-22T09:53:03ZCeph Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1192422018-08-22T09:53:03ZAlfonso Martínezalmartin@redhat.com
<ul><li><strong>Subject</strong> changed from <i>mgr/dashboard: </i> to <i>mgr/dashboard: retrieve "Data Health" info from dashboard backend</i></li></ul> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1192462018-08-22T10:22:55ZAlfonso Martínezalmartin@redhat.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-3 priority-4 priority-default closed parent" href="/issues/27050">Feature #27050</a>: mgr/dashboard: Landing Page Enhancements</i> added</li></ul> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1192532018-08-22T10:27:16ZAlfonso Martínezalmartin@redhat.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-3 priority-4 priority-default closed parent" href="/issues/24573">Feature #24573</a>: mgr/dashboard: Provide more "native" dashboard widgets to display live performance data</i> added</li></ul> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1193872018-08-24T10:16:50ZLenz Grimmer
<ul><li><strong>Category</strong> set to <i>132</i></li><li><strong>Target version</strong> set to <i>v14.0.0</i></li></ul> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1250502018-11-22T20:55:13ZBoris Rantobranto@redhat.com
<ul></ul><p>I have been looking into this and I have a couple of notes:</p>
<p>Internally (in the C++ code), we know all the PGs that are hitting a certain health check state. We are considering the four basic states, here: PG_AVAILABILITY, PG_DEGRADED, PG_DEGRADED_FULL, PG_DAMAGED.</p>
<p>These health checks are exposed to python with mgr.get('health'). The only way a health check can communicate and data is through a detail message (string). We could add a detail message containing all the PGs but I am not sure how the other developers would be looking at this. Furthermore, the maximum number of detail messages is configurable and afaik, it can be set to 0 so we still would not get the data.</p>
<p>Also, the health check states mentioned above are not mutually exclusive -- i.e. a single PG can be in more than a single health check state -- at least there is nothing making sure these states are mutually exclusive in the C++ code of the get_health_check function. Technically, they could be mutually exclusive by their nature but I doubt that since a PG can have several PG_STATE_* flags set.</p>
<p>The fact that they are not mutually exclusive makes the python code pretty slow. We need to send the detail message with the list of all failing PGs (this can be pretty big) and we need to make sure we don't count any PG twice in the final chart.</p>
<p>To add to that, there are other health checks that we might be interested in like OBJECT_MISPLACED.</p>
<p>That being said, I do have a proof of concept implementation of getting the chart data. If anyone is interested, we need the following two patches:</p>
<p><a class="external" href="https://pastebin.com/06f8RTz3">https://pastebin.com/06f8RTz3</a><br /><a class="external" href="https://pastebin.com/zfU3i8sf">https://pastebin.com/zfU3i8sf</a></p> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1320152019-03-14T13:07:13ZLenz Grimmer
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/38697">Feature #38697</a>: mgr/dashboard: Enhance info shown in Landing Page cards 'PGs per OSD' & 'Raw Capacity'</i> added</li></ul> Dashboard - Feature #27049: mgr/dashboard: retrieve "Data Health" info from dashboard backendhttps://tracker.ceph.com/issues/27049?journal_id=1905722021-04-15T16:58:54ZErnesto Puerta
<ul><li><strong>Project</strong> changed from <i>mgr</i> to <i>Dashboard</i></li><li><strong>Category</strong> changed from <i>132</i> to <i>General</i></li></ul>