Hi
Sure, go to the probes directory. For example for xen, you have to
edit /var/lib/one/remotes/im/xen.d/xen.rb
At the end there is a bunch of print_info statements (that's the info
sent to OpenNebula), there you can change that to suit your needs,
e.g. :
print_info("TOTALCPU",cpu_info[:total].round.to_s)
to
print_info("TOTALCPU",(0.80 * cpu_info[:total]).round.to_s)
You may want to define the secure limit in an array for each host....
Also, to debug this just execute the script directly in any of the
hosts of your infrastructure. The output should be a space separated
list of values. Do not forget to execute onehost sync when you are
done and wait for the new script to be distributed...
Cheers
Ruben
On Thu, Mar 22, 2012 at 1:00 PM, Olivier Sallou <[email protected]> wrote:
> Hi,
> I'd like to know if it is possible to define a "security limit" for
> hosts to be sure for example that we keep at least 1 cpu and 2Gb RAM
> free on the host server ?
>
> Though VM template can define some requirements on host by the user, I'd
> like to define some "hard" limits.
>
> Thanks
>
> Olivier
>
> --
>
> gpg key id: 4096R/326D8438 (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | [email protected] | @OpenNebula
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org