Repository navigation
mgr/dashboard: Improvements in cluster > OSDs - #37506
Conversation
e793d16 to
e28eda1
Compare
|
jenkins test dashboard |
|
@aaSharma14 Could you please add the screenshot of the change? |
Added the screenshot.Thanks :) |
|
jenkins test make check |
0fadcb6 to
5518b79
Compare
3b9af3d to
b16d2a2
Compare
0d65b48 to
7764087
Compare
|
jenkins test make check |
|
@aaSharma14 I've tested it and does not work as expected: OSD device count = 0 when it should be 2: Here you can see that the osd has 2 devices: A fix suggestion for your consideration: Also, IMHO "Device Count" column needs a little bit more of width (or maybe the text can be shortened). |
aab3838 to
a172a0b
Compare
|
jenkins test make check |
Thanks @alfonsomthd , I have made some modifications and updated the PR, Can you please do a retest and confirm if its working correctly now.! |
a172a0b to
eae3e19
Compare
alfonsomthd
left a comment
There was a problem hiding this comment.
Tested locally: LGTM
eae3e19 to
be8eb8a
Compare
epuertat
left a comment
There was a problem hiding this comment.
I have a big concern with the newly added get_metadata method. This will probably happen to other list() methods too, but we should be extremely careful before adding more bottlenecks to the dashboard code.
There was a problem hiding this comment.
Could you please measure how long this list() method takes with: 1, 2, 4, 8 and 16 OSDs. You can easily do that in vstart (OSD=N env var setting). It's also be interesting to see how the CPU reacts during this request (you'll probably better launch this from REST via curl CLI).
There was a problem hiding this comment.
With the data that @aaSharma14 obtained from running this with OSD count {1,2,4,6,8,16}, as expected, it grows linearly (not many samples but enough to confirm it). Despite not resulting in huge numbers when extrapolated to OSD=100 or even 1000 (35 ms or 350 ms), the number of API calls (O(N)) might cause issues with the processing queues at ceph-mgr.
Additionally, this mgr.get_metadata() call is only used for retrieving the number of devices of each OSD, which is a rarely changing data.
Solutions:
- To find a single ceph-mgr API call returning this info aggregated for all OSDs.
- Or to introduce pagination, or at least only retrieving separately the currently displayed OSD information, and the device count (only for the OSDs displayed). As a side effect of this, the Device Count column couldn't be sortable/searchable anymore (we don't have all OSD's device count to sort that or search).
There was a problem hiding this comment.
This PR meant to fix 2 issues reported in the linked tracker (@pcuzner please check this):
- The table provides a list of OSDs and yet the first column isn’t the osd id it’s the host
1.1. Put the osd id first- Each osd can span multiple devices (and does for spinners), but to understand how many devices support an OSD you have to go to the properties of each OSD..
2.1. Provide the count of devices an OSD uses on each row to provide a quick way for the configuration to be checked.
The 1st one is tackled, while the second 2 is "feasible" but would impact scalability: OSD endpoint is now O(1) (as long as mgr.get('osd_map') is O(1) which is probably an 'over-assumption' given CPython interfacing overhead) and for retrieving this information, it's necessary to poll mgr.metadata() for every OSD, which is O(n) for a periodically polled endpoint...
My suggestion is to keep the current behaviour: leave the device count in the OSD Details sub-table, and only poll for that information when a user wants to expand details for that OSD. Additionally, the device count is 'low-entropy' data (will never change once an OSD is created, and most, if no all, OSDs will have the same device count).
There was a problem hiding this comment.
Thanks @epuertat . I have removed the device count feature as discussed and this PR is now only intended for :
The table provides a list of OSDs and yet the first column isn’t the osd id it’s the host
1.1. Put the osd id first
Made osd-id the first column of the table instead of Host. Fixes:https://tracker.ceph.com/issues/47478 Signed-off-by: Aashish Sharma <[email protected]>
be8eb8a to
2df7bca
Compare
Changes Addressed
- Adapt the OSD ID column change in this PR: ceph#37506 - Turn off Cypress retries because it makes the failure log misleading. Fixes: https://tracker.ceph.com/issues/48209 Signed-off-by: Kiefer Chang <[email protected]>
- Adapt the OSD ID column change in this PR: ceph#37506 - Turn off Cypress retries because it makes the failure log misleading. Fixes: https://tracker.ceph.com/issues/48209 Signed-off-by: Kiefer Chang <[email protected]>



Made osd-id the first column of the table instead of Host.
Fixes:https://tracker.ceph.com/issues/47478
Signed-off-by:Aashish Sharma [email protected]
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox