You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by sx chen <cl...@gmail.com> on 2012/10/02 16:03:58 UTC

How can I specify the vCPU and ram manually?

  I can spcify the volume capacity when I deploy a vm using a disk offering
without spcifing disk volume.
How can I specify the vCPU and ram manually.If I have to change some source
code,how can I do?

Re: How can I specify the vCPU and ram manually?

Posted by Shanker Balan <ma...@shankerbalan.net>.
On 05-Oct-2012, at 4:20 PM, Giles Sirett <gi...@shapeblue.com> wrote:

> We've had this requirement a few times before.
> In short, it goes against CS's concept of service offerings
> 
> Theres two approaches we've used:
> 
> 1. create, in advance, service offerings  of every permutation of memory/cpu/disk  that you want to sell. Or
> 2. Use the API to generate new service offerings on the fly, when people spin up instances
> 
> Whichever approach you use, doing this in the CS gui will be a lot of work, easiest thing is to create a provisioning site to do it via API, which is relatively  simple
> 
> 
> In terms of usage/billing, you then just bill out against a service offering (its just you have lots of different ones)
> 
> 
> If you have a look at these guys:
> http://www.umbeehosting.co.uk/cloud-hosting/public-cloud-instances/
> 
> they are using approach (1) above

Hi Giles and Tamas,

That was my understanding also, that billing is always against service offerings.

@Giles, I really like the umbeehosting slider system for choosing an offering. Very simple and intuitive.

Thanks.
@shankerbalan


RE: How can I specify the vCPU and ram manually?

Posted by Giles Sirett <gi...@shapeblue.com>.
We've had this requirement a few times before.
In short, it goes against CS's concept of service offerings

Theres two approaches we've used:

1. create, in advance, service offerings  of every permutation of memory/cpu/disk  that you want to sell. Or
2. Use the API to generate new service offerings on the fly, when people spin up instances

Whichever approach you use, doing this in the CS gui will be a lot of work, easiest thing is to create a provisioning site to do it via API, which is relatively  simple


In terms of usage/billing, you then just bill out against a service offering (its just you have lots of different ones)


If you have a look at these guys:
http://www.umbeehosting.co.uk/cloud-hosting/public-cloud-instances/

they are using approach (1) above




Kind Regards
Giles


Giles Sirett
Managing Consultant



D: +44 20 3603 0541 | S: +44 20 3603 0540 | M: +44 796 111 2055

giles.sirett@shapeblue.com | www.shapeblue.com | Twitter:@shapeBlue

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS

-----Original Message-----
From: Shanker Balan [mailto:mail@shankerbalan.net]
Sent: 05 October 2012 07:56
To: cloudstack-users@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

On 04-Oct-2012, at 7:19 PM, sx chen <cl...@gmail.com> wrote:

> Generally speaking,I want to deploy a private cloud,let the custom
> decide the vCPU,ram and dist themselves.

How would you meter and bill adhoc instance types created by customers?

Just curious.

Regards
@shankerbalan

ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales.

RE: How can I specify the vCPU and ram manually?

Posted by Tamas Monos <ta...@veber.co.uk>.
HI,

I'm not sure you actually can. What billing integration we have is service offering based.
You can create as many as you want and you price them individually. I think cloud usage stores how long a service offering was used and you bill based on that.
Of course there are other aspects to usage like network traffic in/out and snapshot etc but the CPU/RAM based billing comes from the service offerings.
Also the way I see things if we "lock down" clients to specific offerings we can plan ahead what/how much resources you might need to fulfil their requirements.

Regards

Tamas Monos                                               DDI         +44(0)2034687012
Chief Technical                                             Office    +44(0)2034687000
Veber: The Hosting Specialists               Fax         +44(0)871 522 7057
http://www.veber.co.uk

Follow us on Twitter: www.twitter.com/veberhost
Follow us on Facebook: www.facebook.com/veberhost

-----Original Message-----
From: Shanker Balan [mailto:mail@shankerbalan.net] 
Sent: 05 October 2012 07:56
To: cloudstack-users@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

On 04-Oct-2012, at 7:19 PM, sx chen <cl...@gmail.com> wrote:

> Generally speaking,I want to deploy a private cloud,let the custom 
> decide the vCPU,ram and dist themselves.

How would you meter and bill adhoc instance types created by customers?

Just curious.

Regards
@shankerbalan



Re: How can I specify the vCPU and ram manually?

Posted by Shanker Balan <ma...@shankerbalan.net>.
On 04-Oct-2012, at 7:19 PM, sx chen <cl...@gmail.com> wrote:

> Generally speaking,I want to deploy a private cloud,let the custom decide
> the vCPU,ram and dist themselves.

How would you meter and bill adhoc instance types created by customers?

Just curious.

Regards
@shankerbalan

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Generally speaking,I want to deploy a private cloud,let the custom decide
the vCPU,ram and dist themselves.


2012/10/4 Nitin Mehta <Ni...@citrix.com>

> As far as implementation goes you can have a look at how to create
> customizable disk offering for reference and it should be on the same lines.
> Thinking loud you will have to change  deployvm and createservice offering
> api, allocator logic a bit for pushing customized cpu and ram, capacity
> checker logic to pick up customizable size and last not the least UI as
> well.
> Why don't you give it a shot by creating a Functional spec for this and I
> can review it for you which should give us an idea of how much work will be
> required (my hunch says not quite a lot)
>
> But, before we tread this path it would be good to understand your use
> case here. Generally speaking, I do not see a lot of customized
> configuration required for cpu and ram compared to disk size and I guess
> that is why we never had customized cpu and ram in the first place.
>
> Thanks,
> -Nitin
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Thursday, October 04, 2012 9:50 AM
> To: cloudstack-users@incubator.apache.org
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: How can I specify the vCPU and ram manually?
>
> Date: 2012/10/4
> Subject: Re: How can I specify the vCPU and ram manually?
> To: cloudstack-dev@incubator.apache.org
> Cc: "cloudstack-users@incubator.apache.org" <
> cloudstack-users@incubator.apache.org>
>
>
> let the custom set the service offering,disk offering and network offering
> is a little confused.
> I don't think every custom is so familiar with all these offerings.
> So if the admin create the offerings,and let the custom select CPU,ram,and
> disk and network is another choice.
>
> So If the CloudStack service offering will set a range for vCPU and ram
> just like disk offering, and let the custom set the vCPU and ram when
> custom deploy a vm will meet my request.
>
> If I change the source code for this, will it be a large project?
>

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Generally speaking,I want to deploy a private cloud,let the custom decide
the vCPU,ram and dist themselves.


2012/10/4 Nitin Mehta <Ni...@citrix.com>

> As far as implementation goes you can have a look at how to create
> customizable disk offering for reference and it should be on the same lines.
> Thinking loud you will have to change  deployvm and createservice offering
> api, allocator logic a bit for pushing customized cpu and ram, capacity
> checker logic to pick up customizable size and last not the least UI as
> well.
> Why don't you give it a shot by creating a Functional spec for this and I
> can review it for you which should give us an idea of how much work will be
> required (my hunch says not quite a lot)
>
> But, before we tread this path it would be good to understand your use
> case here. Generally speaking, I do not see a lot of customized
> configuration required for cpu and ram compared to disk size and I guess
> that is why we never had customized cpu and ram in the first place.
>
> Thanks,
> -Nitin
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Thursday, October 04, 2012 9:50 AM
> To: cloudstack-users@incubator.apache.org
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: How can I specify the vCPU and ram manually?
>
> Date: 2012/10/4
> Subject: Re: How can I specify the vCPU and ram manually?
> To: cloudstack-dev@incubator.apache.org
> Cc: "cloudstack-users@incubator.apache.org" <
> cloudstack-users@incubator.apache.org>
>
>
> let the custom set the service offering,disk offering and network offering
> is a little confused.
> I don't think every custom is so familiar with all these offerings.
> So if the admin create the offerings,and let the custom select CPU,ram,and
> disk and network is another choice.
>
> So If the CloudStack service offering will set a range for vCPU and ram
> just like disk offering, and let the custom set the vCPU and ram when
> custom deploy a vm will meet my request.
>
> If I change the source code for this, will it be a large project?
>

RE: How can I specify the vCPU and ram manually?

Posted by Nitin Mehta <Ni...@citrix.com>.
As far as implementation goes you can have a look at how to create customizable disk offering for reference and it should be on the same lines.
Thinking loud you will have to change  deployvm and createservice offering api, allocator logic a bit for pushing customized cpu and ram, capacity checker logic to pick up customizable size and last not the least UI as well.
Why don't you give it a shot by creating a Functional spec for this and I can review it for you which should give us an idea of how much work will be required (my hunch says not quite a lot)

But, before we tread this path it would be good to understand your use case here. Generally speaking, I do not see a lot of customized configuration required for cpu and ram compared to disk size and I guess that is why we never had customized cpu and ram in the first place.

Thanks,
-Nitin

-----Original Message-----
From: sx chen [mailto:cloudchen0620@gmail.com] 
Sent: Thursday, October 04, 2012 9:50 AM
To: cloudstack-users@incubator.apache.org
Cc: cloudstack-dev@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

Date: 2012/10/4
Subject: Re: How can I specify the vCPU and ram manually?
To: cloudstack-dev@incubator.apache.org
Cc: "cloudstack-users@incubator.apache.org" < cloudstack-users@incubator.apache.org>


let the custom set the service offering,disk offering and network offering is a little confused.
I don't think every custom is so familiar with all these offerings.
So if the admin create the offerings,and let the custom select CPU,ram,and disk and network is another choice.

So If the CloudStack service offering will set a range for vCPU and ram just like disk offering, and let the custom set the vCPU and ram when custom deploy a vm will meet my request.

If I change the source code for this, will it be a large project?

RE: How can I specify the vCPU and ram manually?

Posted by Nitin Mehta <Ni...@citrix.com>.
As far as implementation goes you can have a look at how to create customizable disk offering for reference and it should be on the same lines.
Thinking loud you will have to change  deployvm and createservice offering api, allocator logic a bit for pushing customized cpu and ram, capacity checker logic to pick up customizable size and last not the least UI as well.
Why don't you give it a shot by creating a Functional spec for this and I can review it for you which should give us an idea of how much work will be required (my hunch says not quite a lot)

But, before we tread this path it would be good to understand your use case here. Generally speaking, I do not see a lot of customized configuration required for cpu and ram compared to disk size and I guess that is why we never had customized cpu and ram in the first place.

Thanks,
-Nitin

-----Original Message-----
From: sx chen [mailto:cloudchen0620@gmail.com] 
Sent: Thursday, October 04, 2012 9:50 AM
To: cloudstack-users@incubator.apache.org
Cc: cloudstack-dev@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

Date: 2012/10/4
Subject: Re: How can I specify the vCPU and ram manually?
To: cloudstack-dev@incubator.apache.org
Cc: "cloudstack-users@incubator.apache.org" < cloudstack-users@incubator.apache.org>


let the custom set the service offering,disk offering and network offering is a little confused.
I don't think every custom is so familiar with all these offerings.
So if the admin create the offerings,and let the custom select CPU,ram,and disk and network is another choice.

So If the CloudStack service offering will set a range for vCPU and ram just like disk offering, and let the custom set the vCPU and ram when custom deploy a vm will meet my request.

If I change the source code for this, will it be a large project?

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Date: 2012/10/4
Subject: Re: How can I specify the vCPU and ram manually?
To: cloudstack-dev@incubator.apache.org
Cc: "cloudstack-users@incubator.apache.org" <
cloudstack-users@incubator.apache.org>


let the custom set the service offering,disk offering and network offering
is a little confused.
I don't think every custom is so familiar with all these offerings.
So if the admin create the offerings,and let the custom select CPU,ram,and
disk and network
is another choice.

So If the CloudStack service offering will set a range for vCPU and ram
just like disk offering,
and let the custom set the vCPU and ram when custom deploy a vm will meet
my request.

If I change the source code for this, will it be a large project?

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Date: 2012/10/4
Subject: Re: How can I specify the vCPU and ram manually?
To: cloudstack-dev@incubator.apache.org
Cc: "cloudstack-users@incubator.apache.org" <
cloudstack-users@incubator.apache.org>


let the custom set the service offering,disk offering and network offering
is a little confused.
I don't think every custom is so familiar with all these offerings.
So if the admin create the offerings,and let the custom select CPU,ram,and
disk and network
is another choice.

So If the CloudStack service offering will set a range for vCPU and ram
just like disk offering,
and let the custom set the vCPU and ram when custom deploy a vm will meet
my request.

If I change the source code for this, will it be a large project?

RE: How can I specify the vCPU and ram manually?

Posted by Nitin Mehta <Ni...@citrix.com>.
I thought so that is what you were referring to. There is no such provision currently. Can you please file an enhancement request for the same ?
________________________________________
From: sx chen [cloudchen0620@gmail.com]
Sent: Wednesday, October 03, 2012 10:03 PM
To: cloudstack-users@incubator.apache.org
Cc: cloudstack-dev@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

Thanks clayton,Certainly I know after creating a service offering,I had
specify the vCPU and ram.
But what I want to do is creating a free service offering,so I can specify
the vCPU and ram manually when I
deploy a vm,not at the time I creating a service offering.



2012/10/3 Clayton Weise <cw...@iswest.net>

> You don't need to change any source code, you just need to make a custom
> service offering.  On the left side of the interface you should see an
> option for service offerings, and then from there you will find a drop down
> to choose compute offering:
>
> http://i.imgur.com/vXWBN.png
>
> From there you can create your own custom offering with however many vCPUs
> and memory you want.
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Tuesday, October 02, 2012 7:04 AM
> To: cloudstack-users@incubator.apache.org;
> cloudstack-dev@incubator.apache.org
> Subject: How can I specify the vCPU and ram manually?
>
>   I can spcify the volume capacity when I deploy a vm using a disk offering
> without spcifing disk volume.
> How can I specify the vCPU and ram manually.If I have to change some source
> code,how can I do?
>

RE: How can I specify the vCPU and ram manually?

Posted by Nitin Mehta <Ni...@citrix.com>.
I thought so that is what you were referring to. There is no such provision currently. Can you please file an enhancement request for the same ?
________________________________________
From: sx chen [cloudchen0620@gmail.com]
Sent: Wednesday, October 03, 2012 10:03 PM
To: cloudstack-users@incubator.apache.org
Cc: cloudstack-dev@incubator.apache.org
Subject: Re: How can I specify the vCPU and ram manually?

Thanks clayton,Certainly I know after creating a service offering,I had
specify the vCPU and ram.
But what I want to do is creating a free service offering,so I can specify
the vCPU and ram manually when I
deploy a vm,not at the time I creating a service offering.



2012/10/3 Clayton Weise <cw...@iswest.net>

> You don't need to change any source code, you just need to make a custom
> service offering.  On the left side of the interface you should see an
> option for service offerings, and then from there you will find a drop down
> to choose compute offering:
>
> http://i.imgur.com/vXWBN.png
>
> From there you can create your own custom offering with however many vCPUs
> and memory you want.
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Tuesday, October 02, 2012 7:04 AM
> To: cloudstack-users@incubator.apache.org;
> cloudstack-dev@incubator.apache.org
> Subject: How can I specify the vCPU and ram manually?
>
>   I can spcify the volume capacity when I deploy a vm using a disk offering
> without spcifing disk volume.
> How can I specify the vCPU and ram manually.If I have to change some source
> code,how can I do?
>

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Thanks clayton,Certainly I know after creating a service offering,I had
specify the vCPU and ram.
But what I want to do is creating a free service offering,so I can specify
the vCPU and ram manually when I
deploy a vm,not at the time I creating a service offering.



2012/10/3 Clayton Weise <cw...@iswest.net>

> You don't need to change any source code, you just need to make a custom
> service offering.  On the left side of the interface you should see an
> option for service offerings, and then from there you will find a drop down
> to choose compute offering:
>
> http://i.imgur.com/vXWBN.png
>
> From there you can create your own custom offering with however many vCPUs
> and memory you want.
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Tuesday, October 02, 2012 7:04 AM
> To: cloudstack-users@incubator.apache.org;
> cloudstack-dev@incubator.apache.org
> Subject: How can I specify the vCPU and ram manually?
>
>   I can spcify the volume capacity when I deploy a vm using a disk offering
> without spcifing disk volume.
> How can I specify the vCPU and ram manually.If I have to change some source
> code,how can I do?
>

Re: How can I specify the vCPU and ram manually?

Posted by sx chen <cl...@gmail.com>.
Thanks clayton,Certainly I know after creating a service offering,I had
specify the vCPU and ram.
But what I want to do is creating a free service offering,so I can specify
the vCPU and ram manually when I
deploy a vm,not at the time I creating a service offering.



2012/10/3 Clayton Weise <cw...@iswest.net>

> You don't need to change any source code, you just need to make a custom
> service offering.  On the left side of the interface you should see an
> option for service offerings, and then from there you will find a drop down
> to choose compute offering:
>
> http://i.imgur.com/vXWBN.png
>
> From there you can create your own custom offering with however many vCPUs
> and memory you want.
>
> -----Original Message-----
> From: sx chen [mailto:cloudchen0620@gmail.com]
> Sent: Tuesday, October 02, 2012 7:04 AM
> To: cloudstack-users@incubator.apache.org;
> cloudstack-dev@incubator.apache.org
> Subject: How can I specify the vCPU and ram manually?
>
>   I can spcify the volume capacity when I deploy a vm using a disk offering
> without spcifing disk volume.
> How can I specify the vCPU and ram manually.If I have to change some source
> code,how can I do?
>

RE: How can I specify the vCPU and ram manually?

Posted by Clayton Weise <cw...@iswest.net>.
You don't need to change any source code, you just need to make a custom service offering.  On the left side of the interface you should see an option for service offerings, and then from there you will find a drop down to choose compute offering:

http://i.imgur.com/vXWBN.png

>From there you can create your own custom offering with however many vCPUs and memory you want.

-----Original Message-----
From: sx chen [mailto:cloudchen0620@gmail.com] 
Sent: Tuesday, October 02, 2012 7:04 AM
To: cloudstack-users@incubator.apache.org; cloudstack-dev@incubator.apache.org
Subject: How can I specify the vCPU and ram manually?

  I can spcify the volume capacity when I deploy a vm using a disk offering
without spcifing disk volume.
How can I specify the vCPU and ram manually.If I have to change some source
code,how can I do?

RE: How can I specify the vCPU and ram manually?

Posted by Clayton Weise <cw...@iswest.net>.
You don't need to change any source code, you just need to make a custom service offering.  On the left side of the interface you should see an option for service offerings, and then from there you will find a drop down to choose compute offering:

http://i.imgur.com/vXWBN.png

>From there you can create your own custom offering with however many vCPUs and memory you want.

-----Original Message-----
From: sx chen [mailto:cloudchen0620@gmail.com] 
Sent: Tuesday, October 02, 2012 7:04 AM
To: cloudstack-users@incubator.apache.org; cloudstack-dev@incubator.apache.org
Subject: How can I specify the vCPU and ram manually?

  I can spcify the volume capacity when I deploy a vm using a disk offering
without spcifing disk volume.
How can I specify the vCPU and ram manually.If I have to change some source
code,how can I do?