Re: [one-users] How to add iotune option to VM template

2015-02-03 Thread Carlos Martín Sánchez
Hi,

On Tue, Feb 3, 2015 at 12:05 PM, Pedro Pereira <
pmepere...@reitoria.ulisboa.pt> wrote:
>
> It would be nice to have a way to add this info directly in the template
> wizard, under the disk's Advanced Options.
>

That's true, I've opened a ticket for that [1].
Regards.

[1] http://dev.opennebula.org/issues/3555

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
 

On Tue, Feb 3, 2015 at 12:05 PM, Pedro Pereira <
pmepere...@reitoria.ulisboa.pt> wrote:

> That is exactly it!!!
> I don't know how I missed that...
>
> My Results:
>
> Original Disk declatation in Advanced Tab of the template editor:
> DISK=[DEV_PREFIX="vd",DRIVER="qcow2",IMAGE="v3b3",IMAGE_UNAME="admin"]
>
> Adding the TOTAL_BYTES_SEC:
>
> DISK=[DEV_PREFIX="vd",DRIVER="qcow2",IMAGE="v3b3",IMAGE_UNAME="admin",TOTAL_BYTES_SEC="100"]
>
>
> Snippet of generated "deployment.0" file:
> ***
> 
> 
> 
> 
> 
> 100
> 
> 
> ***
>
> It would be nice to have a way to add this info directly in the template
> wizard, under the disk's Advanced Options.
>
> Thanks again for your help.
>
> Pedro Pereira
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to add iotune option to VM template

2015-02-03 Thread Pedro Pereira
That is exactly it!!!
I don't know how I missed that...

My Results:

Original Disk declatation in Advanced Tab of the template editor:
DISK=[DEV_PREFIX="vd",DRIVER="qcow2",IMAGE="v3b3",IMAGE_UNAME="admin"]

Adding the TOTAL_BYTES_SEC:
DISK=[DEV_PREFIX="vd",DRIVER="qcow2",IMAGE="v3b3",IMAGE_UNAME="admin",TOTAL_BYTES_SEC="100"]


Snippet of generated "deployment.0" file:
***





100


***

It would be nice to have a way to add this info directly in the template
wizard, under the disk's Advanced Options.

Thanks again for your help.

Pedro Pereira


0x9483169C.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to add iotune option to VM template

2015-02-02 Thread Carlos Martín Sánchez
Hi,

I think you are asking about the _bytes_sec and _iops_sec disk attributes
[1]. Those are already supported by opennebula, but you will have to edit
the template in the cli or in the advanced section of sunstone.

Regards

[1]
http://docs.opennebula.org/4.10/user/references/template.html#disks-section

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
 

On Mon, Feb 2, 2015 at 2:52 PM, Pedro Pereira <
pmepere...@reitoria.ulisboa.pt> wrote:

>  Anyone has any idea how to do this?
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to add iotune option to VM template

2015-02-02 Thread Pedro Pereira
Anyone has any idea how to do this?


0x9483169C.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to add iotune option to VM template

2015-01-29 Thread Pedro Pereira
PS: Nevermind the Datastore and VM IDs, they are wrong but that is not
hte issue here.



0x9483169C.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] How to add iotune option to VM template

2015-01-29 Thread Pedro Pereira
Hi everyone,

I have searched a lot before asking this question, wouldn't bother you
with it if I wasn't completely stumped...

I've been experimenting with I/O throttling on our OpenNebula servers,
so that a couple of VMs needing very high I/O don't completely hog the
bandwidth and slow everything to a crawl.

I Found out how to add raw data to my template, like  option.
This is a domain option, so dropping it in the template ("Other" tab,
type "raw", "stuff", done) is quite easy.

The generated template would result in
-

  ...
  
800

  /dev/sda
  1000


  /dev/sdb
  500

  
  ...

-

Blkiotune is a global option, and I need to be more granular in my
settings. Enter iotune.

I need to add  for all disks defined in the template, but
inserting the code on the same section as  doesn't work, even
if I nest it in the proper tags, e.g. iotune
stuff, hoping it would merge with every 
declaration (blkiotune is a "top level" domain parameter,  is
for every disk declaration in the template). It just ends up in the end
of the template, just like blkiotune example above.

Example of how it turned out (doesn't work, VM doesn't boot, of course!):
-

...


  
  

  
  

#another disk
   
   
   

...



   
  1000
  40
  10
   


...

-


How it needs to be to work correctly:
-

...


  
  

  
  
  
1000
40
10
  

#another disk
  
  
  
  
1000
40
10
  

...


-


Don't pay attention to the type of disks in the template, it's just a
mashup from samples and what I'd like it to be.
Sample code extracted from
https://libvirt.org/formatdomain.html#elementsBlockTuningandhttps://libvirt.org/formatdomain.html#elementsDisks,
and modified to fit my needs.

Sorry for the long post, I hope someone can help me out here.

Thanks,

Pedro Pereira


0x9483169C.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org