]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Replace dashboard service 24900/head
authorZack Cerza <zack@redhat.com>
Mon, 29 Oct 2018 22:07:27 +0000 (16:07 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 27 Nov 2018 23:08:53 +0000 (16:08 -0700)
commit50b7d42fe59aa8fd5194fa81395725b5b5cedd64
treefb7a2dd580bdb675ebda5a576afd6d6d3864c2eb
parenta90b5ac7c747fead9cf2e794d70f4724187b82f0
mgr/dashboard: Replace dashboard service

This splits out the collection of health and log data from the
/api/dashboard/health controller into /api/health/{full,minimal} and
/api/logs/all.

/health/full contains all the data (minus logs) that /dashboard/health
did, whereas /health/minimal contains only what is needed for the health
component to function. /logs/all contains exactly what the logs portion
of /dashboard/health did.

By using /health/minimal, on a vstart cluster we pull ~1.4KB of data
every 5s, where we used to pull ~6KB; those numbers would get larger
with larger clusters. Once we split out log data, that will drop to
~0.4KB.

Fixes: http://tracker.ceph.com/issues/36675
Signed-off-by: Zack Cerza <zack@redhat.com>
20 files changed:
qa/suites/rados/mgr/tasks/dashboard.yaml
qa/tasks/mgr/dashboard/test_dashboard.py [deleted file]
qa/tasks/mgr/dashboard/test_health.py [new file with mode: 0644]
qa/tasks/mgr/dashboard/test_logs.py [new file with mode: 0644]
qa/tasks/mgr/dashboard/test_pool.py
src/pybind/mgr/dashboard/controllers/dashboard.py [deleted file]
src/pybind/mgr/dashboard/controllers/health.py [new file with mode: 0644]
src/pybind/mgr/dashboard/controllers/logs.py [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/dashboard.service.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/dashboard.service.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.ts [new file with mode: 0644]