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 <oma...@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 <oma...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: ofri masad <oma...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to