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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to