]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Add /health/snapshot api 65019/head
authorAfreen Misbah <afreen@ibm.com>
Wed, 13 Aug 2025 06:49:02 +0000 (12:19 +0530)
committerAfreen Misbah <afreen@ibm.com>
Mon, 25 Aug 2025 10:59:23 +0000 (16:29 +0530)
commit2609d4f62e9e3906cf3e3fcc042bfdf0bcc633bf
tree0fe9d065dfa962bc5ee474d88447c82eba999ae8
parent86006fbbc6735506210293c27a415f0f380843d3
mgr/dashboard: Add /health/snapshot api

Fixes https://tracker.ceph.com/issues/72609

- The current minimal API relies on fetching data from osdmap and pgmap.
- These commands produce large, detailed payloads that become a performance bottleneck and impact scalability, especially in large clusters.
- To address this, we propose switching to the ceph snapshot API using ceph status command, which retrieves essential information directly from the cluster map.
- ceph status is significantly more lightweight compared to osdmap/pgmap, reducing payload sizes and processing overhead.
- This change ensures faster response times, improves system efficiency in large deployments, and minimizes unnecessary data transfer.
- update tests

Signed-off-by: Afreen Misbah <afreen@ibm.com>
21 files changed:
src/pybind/mgr/dashboard/controllers/health.py
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/pg-summary.pipe.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/pg-summary.pipe.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/ceph-shared.module.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/health-checks/health-checks.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/health-checks/health-checks.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-details.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/health.interface.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/mds-summary.pipe.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/mds-summary.pipe.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/osd-summary.pipe.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/osd-summary.pipe.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/pipes.module.ts
src/pybind/mgr/dashboard/openapi.yaml