Re: [one-dev] Scheduler decisions regarding storage

2014-06-16 Thread Carlos Martín Sánchez
Adding to what Rubén said, VirtualMachine::get_requirements will report the needed storage when we address this issue: http://dev.opennebula.org/issues/2402 -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @Open

Re: [one-dev] Scheduler decisions regarding storage

2014-06-12 Thread Ruben S. Montero
Hi Stuart That code, as you suggest in your first email, is actually in the scheduler. You are probably interested in VirtualMachineXML class, specially Computation on the storage needed by the VM[1]: * IT considers the DS and specific mechanisms of the CLONE and LN operations (i.e. if the stor

Re: [one-dev] Scheduler decisions regarding storage

2014-06-08 Thread Stuart Longland
On 05/06/14 12:32, Stuart Longland wrote: > What I observe though, is that the disk storage always returns 0. My > plan was to expand on this by adding an extra parameter (int& cache), > and I'd use whatever code is present to calculate disk requirements to > figure out how much to cache and thus,

[one-dev] Scheduler decisions regarding storage

2014-06-04 Thread Stuart Longland
Hi all, I've decided to pull my finger out and clone a copy of the OpenNebula git repository and actually dive right into the core of it. The plan is to try and implement a caching back-end, rather than having it bolted onto the storage driver the way it is presently in our 'cephcache' driver. T