Mei Liu has uploaded a new change for review. Change subject: mom:add storage backend and vm disk priority info to config(Draft) ......................................................................
mom:add storage backend and vm disk priority info to config(Draft) This patch add storage backend priority count and vm disk priority to config file. MOM cannot recognise storage backend and thus the info is added to host and guest respectively. Change-Id: I5a305e0196a2dcd6444c42c43564bc66c9479775 Signed-off-by: MeiLiu <[email protected]> --- M doc/mom-balloon+ksm.conf M doc/mom-balloon.conf M mom/__init__.py 3 files changed, 16 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/61/17761/1 diff --git a/doc/mom-balloon+ksm.conf b/doc/mom-balloon+ksm.conf index e7b50d4..2ca2488 100644 --- a/doc/mom-balloon+ksm.conf +++ b/doc/mom-balloon+ksm.conf @@ -78,10 +78,17 @@ # A comma-separated list of Collector plugins to use for Host data collection. collectors: HostMemory, HostKSM +# Priority count for storage backend. VM disk resides in that storage backend +# has a priority in range [0, priority-count). 0 is the highest priority. +priority-count: 3 + [guest] # A comma-separated list of Collector plugins to use for Guest data collection. collectors: GuestQemuProc, GuestMemory, GuestBalloon +# Default priority value of each VM disk. +priority: 2 + # Collector-specific configuration for GuestQemuAgent [Collector: GuestQemuAgent] # Set the base path where the host-side sockets for guest communication can be diff --git a/doc/mom-balloon.conf b/doc/mom-balloon.conf index 9ba3217..5229fb2 100644 --- a/doc/mom-balloon.conf +++ b/doc/mom-balloon.conf @@ -78,10 +78,17 @@ # A comma-separated list of Collector plugins to use for Host data collection. collectors: HostMemory +# Priority count for storage backend. VM disk resides in that storage backend +# has a priority in range [0, priority-count). 0 is the highest priority. +priority-count: 3 + [guest] # A comma-separated list of Collector plugins to use for Guest data collection. collectors: GuestQemuProc, GuestMemory, GuestBalloon +# Default priority value of each VM disk. +priority: 2 + # Collector-specific configuration for GuestQemuAgent [Collector: GuestQemuAgent] # Set the base path where the host-side sockets for guest communication can be diff --git a/mom/__init__.py b/mom/__init__.py index 97c0c11..928a881 100644 --- a/mom/__init__.py +++ b/mom/__init__.py @@ -95,8 +95,10 @@ self.config.set('logging', 'backup-count', '5') self.config.add_section('host') self.config.set('host', 'collectors', 'HostMemory') + self.config.set('host', 'priority-count', '3') self.config.add_section('guest') self.config.set('guest', 'collectors', 'GuestQemuProc, GuestMemory') + self.config.set('guest', 'priority', '2') # Override defaults from the config file self.config.read(fname) -- To view, visit http://gerrit.ovirt.org/17761 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5a305e0196a2dcd6444c42c43564bc66c9479775 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Mei Liu <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
