Change in ovirt-engine[master]: core: Fast update quota cache

dfediuck at redhat.com dfediuck at redhat.com
Thu Dec 27 10:39:15 UTC 2012


Doron Fediuck has submitted this change and it was merged.

Change subject: core: Fast update quota cache
......................................................................


core: Fast update quota cache

Monitoring Quota requires full cache in QuotaManager. Current way of
fetching each quota to cache individually and calculation consumption
for each quota individually is very inefficient.

New store-procedures and DAO methods were added in order to support
simultaneous consumption calculation of all quotas.

New API (updateQuotaCache) was added to QuotaManager.

New Quartz-job added to Backend to call the update every 10
(configurable) minutes.

Change-Id: Id3db08957e413d2f1e0480b764334dd7268c8221
Signed-off-by: Ofri Masad <omasad at redhat.com>
---
M backend/manager/dbscripts/create_functions.sql
M backend/manager/dbscripts/quota_sp.sql
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/QuotaDAO.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/QuotaDAODbFacadeImpl.java
7 files changed, 275 insertions(+), 1 deletion(-)

Approvals:
  Doron Fediuck: Looks good to me, approved
  ofri masad: Verified


--
To view, visit http://gerrit.ovirt.org/10159
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id3db08957e413d2f1e0480b764334dd7268c8221
Gerrit-PatchSet: 10
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: ofri masad <omasad at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: ofri masad <omasad at redhat.com>



More information about the Engine-commits mailing list