Community

Discussions  |  Feature Requests  |  Tips and Tricks

Specify Multiple Fractional Cores/CPU for shapes

#1Jan. 25, 2012 10:32:28

Sherman Boyd
Registered: 2011-06-15
Posts: 7

Specify Multiple Fractional Cores/CPU for shapes

I'd like to see the ability to add complex shapes like:

nimbula-admin add shape tinyfourcore .25,.25,.25,.25 256 1000

to create a shape that has access to 4 fractional cores.
 

#2Jan. 25, 2012 11:23:56

Jeremy Bar
Registered: 2011-01-05
Posts: 30

Specify Multiple Fractional Cores/CPU for shapes

Hi Sherman,

We actually support fractional shapes, you can create a shape with 0.25 for the CPU.

nimbula-admin add shape tinycore 0.25 512 1000

Then all you need is to provision 4 instances with this tinycore shape.

Jeremy
 

#3Jan. 25, 2012 12:03:25

Sherman Boyd
Registered: 2011-06-15
Posts: 7

Specify Multiple Fractional Cores/CPU for shapes

jeremy@nimbula.com
Hi Sherman,

We actually support fractional shapes, you can create a shape with 0.25 for the CPU.

nimbula-admin add shape tinycore 0.25 512 1000

Then all you need is to provision 4 instances with this tinycore shape.

Jeremy


My goal would be one instance with four virtual cores. Each virtual core has access to .25 of a physical core.

You can dance around this with over-provisioning, but that's not super flexible and places your high end shapes on even footing with the low end ones. Right now virtual cores are tied to physical cores, which is not the only strategy.

Maybe another way to do it would be to specify the number of virtual cores in a shape separately from the CPU setting. Like this:

nimbula-admin add shape name cpu vcores ram io
nimbula-admin add shape tinycore .25 4 512 1000

 

#4Jan. 25, 2012 14:41:44

Jeremy Bar
Registered: 2011-01-05
Posts: 30

Specify Multiple Fractional Cores/CPU for shapes

Hi Sherman,

The way to do this is the following:

  1. set your .../over_provisioning/cpu config point to 4
  2. Create a shape with 4 vCPUs


The way you can mitigate the high end, and low end shapes is to assign an different IO values. The low end shape would have and IO of 250, and the high end shape would be 1000.