Adam Litke has submitted this change and it was merged.
Change subject: New hypervisor interface for remote VDSM over XML-RPC with stats caching
......................................................................
New hypervisor interface for remote VDSM over XML-RPC with stats caching
This patch adds a new vdsmxmlrpcInterface that uses getAllVmStats
for retrieving all information about all VMs at the same time.
The stats structure is then cached for 5 seconds to make sure we
are not overloading VDSM with constant requests.
XML-RPC client is stateless so it does not matter if VDSM dies or
restarts between requests, MOM will treat the situation as if the
host was empty and will keep running.
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=1227714
Change-Id: I314f39f9020ee257827145a57f585e7921a913e3
Signed-off-by: Martin Sivak <msivak(a)redhat.com>
Reviewed-on:
https://gerrit.ovirt.org/41570
Reviewed-by: Francesco Romani <fromani(a)redhat.com>
Reviewed-by: Adam Litke <alitke(a)redhat.com>
---
M mom/HypervisorInterfaces/Makefile.am
A mom/HypervisorInterfaces/vdsmxmlrpcInterface.py
2 files changed, 272 insertions(+), 0 deletions(-)
Approvals:
Adam Litke: Looks good to me, approved
Martin Sivák: Verified
Francesco Romani: Looks good to me, but someone else must approve
--
To view, visit
https://gerrit.ovirt.org/41570
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I314f39f9020ee257827145a57f585e7921a913e3
Gerrit-PatchSet: 9
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Adam Litke <alitke(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org