Increase service size

39 views
Skip to first unread message

gandalf.co...@gmail.com

unread,
Oct 11, 2012, 10:29:16 AM10/11/12
to vcap...@cloudfoundry.org
I've  created a new app bound to a MySQL Service.
How can I increase the standard size of 20M without modifing the configuration? Is possibile
to change size of services and apps from the cli/api ?

Nicholas Kushmerick

unread,
Oct 11, 2012, 11:22:20 AM10/11/12
to vcap...@cloudfoundry.org
re mysql in particular and service instances in general:  No, you can not dynamically/programmatically change the size/configuration of a service instance.

The size/configuration of a service instance is determined by its "plan" -- for example, https://github.com/cloudfoundry/vcap/blob/master/dev_setup/cookbooks/mysql/templates/default/mysql_node.yml.erb defiines a plan called "free" with size 20 https://github.com/cloudfoundry/vcap/blob/master/dev_setup/cookbooks/mysql/attributes/default.rb#L21.

Dev_setup is hardwired with a single 'free' plan, but CloudFoundry supports an arbitrary number of plans.  The intent is that the operator of the CloudFoundry instance define a variety range of plans that are suitable for the customers/applications that will be using it.  But currently these can not be modified by customers.
--
Nick
phone +1.206.293.5186 · skype nicholaskushmerick

gandalf.co...@gmail.com

unread,
Oct 11, 2012, 12:15:38 PM10/11/12
to vcap...@cloudfoundry.org
On Thursday, October 11, 2012 5:22:20 PM UTC+2, Nicholas Kushmerick wrote:
Dev_setup is hardwired with a single 'free' plan, but CloudFoundry supports an arbitrary number of plans.  The intent is that the operator of the CloudFoundry instance define a variety range of plans that are suitable for the customers/applications that will be using it.  But currently these can not be modified by customers.

So, currently, I have to choose a single plan and bind all customers to it?

Nicholas Kushmerick

unread,
Oct 11, 2012, 12:20:29 PM10/11/12
to vcap...@cloudfoundry.org
CloudFoundry definitely supports as many different plans at the same time as you want: set up various service nodes that implement the various plans, and the service gateway will route provision requests to the correct node: https://github.com/cloudfoundry/vcap-services-base/blob/master/lib/base/provisioner.rb#L419

gandalf.co...@gmail.com

unread,
Oct 11, 2012, 12:32:05 PM10/11/12
to vcap...@cloudfoundry.org
On Thursday, October 11, 2012 6:20:31 PM UTC+2, Nicholas Kushmerick wrote:
CloudFoundry definitely supports as many different plans at the same time as you want: set up various service nodes that implement the various plans, and the service gateway will route provision requests to the correct node: https://github.com/cloudfoundry/vcap-services-base/blob/master/lib/base/provisioner.rb#L419

Ok, but how can I choose a plan when creating a new mysql service? 

Glenn Oppegard

unread,
Oct 11, 2012, 12:36:48 PM10/11/12
to vcap...@cloudfoundry.org
Check out this thread:

The prerelease of vmc has the '--plan' option  when creating a service:

$ vmc help create-service
Create a service

Usage: create-service [SERVICE] [NAME]

Options:
      --app, --bind APP      Application to immediately bind to
      --name NAME            Name for your instance
      --plan PLAN            Service plan
      --provider PROVIDER    Service provider
      --service SERVICE      What kind of service (e.g. redis, mysql)
      --version VERSION      Service version

gandalf.co...@gmail.com

unread,
Oct 11, 2012, 12:46:33 PM10/11/12
to vcap...@cloudfoundry.org
On Thursday, October 11, 2012 6:36:50 PM UTC+2, Glenn Oppegard wrote:
Check out this thread:

The prerelease of vmc has the '--plan' option  when creating a service:

I have to use the latest vmc version for this option?
Will be possible to change a plan in an active service? 

Glenn Oppegard

unread,
Oct 11, 2012, 1:19:11 PM10/11/12
to vcap...@cloudfoundry.org
Yes, you have to use the latest vmc for that option. I'm not sure if you can change the plan of an active service. Perhaps Nick or Alex can speak to that.

Nicholas Kushmerick

unread,
Oct 11, 2012, 1:23:07 PM10/11/12
to vcap...@cloudfoundry.org
No, you can't change a service instance's plan.  However, the snapshot APIs allow you to copy the data from an instance of plan A to a different instance of plan B: https://github.com/cloudfoundry/cloud_controller/blob/master/cloud_controller/config/routes.rb#L58-69
See also https://github.com/cloudfoundry/vcap-yeti/tree/master/spec/service_lifecycle for concrete examples of how to call these APIs.
Reply all
Reply to author
Forward
0 new messages