]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Enable gzip compression 24727/head
authorZack Cerza <zack@redhat.com>
Tue, 23 Oct 2018 22:43:51 +0000 (22:43 +0000)
committerZack Cerza <zack@redhat.com>
Wed, 24 Oct 2018 22:04:37 +0000 (16:04 -0600)
commit03de8f9557f0b58cf0f4d1fdb5a0ba1932ba9f75
tree8d1fada21172f1207bd59873d4da0e96f60983e4
parentbd09bc04622e82476233437a5dd9a87eff0a9ed4
mgr/dashboard: Enable gzip compression

This is related to http://tracker.ceph.com/issues/36453. It is far from
a complete solution, but seems like a positive move.

I tested this change by first disabling my browser cache, and then used
the /docs endpoint to query /api/dashboard/health. Before compression:
  Content-Length: 60748
  Time: 615ms
After:
  Content-Length: 7505
  Time: 92ms

Then, I logged into the dashboard as normal and reloaded the page once I
was in. Some values for the reload operation before compression:
  Total page load time: 58.48s
  vendor.js Content-Length: 6486025
  vendor.js time: 48.09s
After:
  Total page load time: 14.55s
  vendor.js Content-Length: 1143178
  vendor.js time: 4.50s

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/tasks/mgr/dashboard/test_requests.py [new file with mode: 0644]
src/pybind/mgr/dashboard/module.py