[one-users] RANK expression
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Oct 25 03:31:36 PDT 2011
Hi,
On Mon, Oct 24, 2011 at 8:40 PM, Faarooq Lowe <lowe at fnal.gov> wrote:
> Are there any pre-defined values for disk space that may be used for the
> RANK expression in a template?
>
>
We don't have any probe to report the free disk space, but adding new probes
is really easy.
You just need to add a new file to /var/lib/one/remotes/im/<virtualizer>.d,
take a look for instance at /var/lib/one/remotes/im/kvm.d/name.sh
#!/bin/sh
echo HOSTNAME=`uname -n`
Remember to execute 'onehost sync' as oneadmin to refresh the probes on the
hosts.
> Also is there away to evaluate expressions in a specific order such as;
> FREEMEMORY, DISKSPACE, - RUNNING_VMS etc.?
>
>
The RANK expression accepts arithmetic operators [2], so you can assign
weights to each attribute. You might want to normalize the values first.
Best regards.
[1] http://opennebula.org/documentation:rel3.0:img#tunning_extending
[2]
http://opennebula.org/documentation:rel3.0:template#rank_expression_syntax
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111025/f733ab85/attachment-0003.htm>
More information about the Users
mailing list