From Greg Sheremeta <gshereme(a)redhat.com>:
Greg Sheremeta has submitted this change and it was merged.
Change subject: webadmin: add background cache update to dashboard data servlet
......................................................................
webadmin: add background cache update to dashboard data servlet
Using JSR-236 JavaEE 7 Concurrency APIs, setup two background
tasks that will query the engine and DWH databases as needed
to satisfy DashboardDataServlet data requirements. The tasks
are scheduled at periodic intervals based on their cache
lifespan intervals.
This will also warm up the cache at start up time so the first
user to load dashboard data does not need to incur first
query penalties.
Configuration options have been added to ovirt-engine.conf to:
- enable/disable the background cache update
- control the interval between updates for the inventory cache
- control the interval between updates for the utilization cache
Change-Id: I2bb9e41835759e4c16aec801801e7f9149977b40
Bug-Url:
https://bugzilla.redhat.com/1344428
Signed-off-by: Scott J Dickerson <sdickers(a)redhat.com>
---
M ear/src/main/application/META-INF/jboss-deployment-structure.xml
M frontend/webadmin/modules/frontend/pom.xml
M
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/dashboard/DashboardDataServlet.java
M
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/dashboard/fake/FakeDataGenerator.java
M frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml
M packaging/services/ovirt-engine/ovirt-engine.conf.in
M packaging/services/ovirt-engine/ovirt-engine.xml.in
M pom.xml
8 files changed, 251 insertions(+), 54 deletions(-)
Approvals:
Jenkins CI: Passed CI tests
Greg Sheremeta: Looks good to me, approved
Scott Dickerson: Verified
--
To view, visit
https://gerrit.ovirt.org/67709
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2bb9e41835759e4c16aec801801e7f9149977b40
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Scott Dickerson <sdickers(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Scott Dickerson <sdickers(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>