Cloud Foundry Providers :
•• Cloud Foundry Foundation – http://cloudfoundry.org/
•• ActiveState Stackato – http://www.activestate.com/stackato
FF Free for production use up to 20GB RAM
•• AppFog – http://appfog.com/
FF 30-day free trial (up to 2GB RAM)
•• IBM Bluemix – http://www.ibm.com/software/bluemix/
FF 30-day free trial (up to 2GB RAM)
•• Pivotal Cloud Foundry – http://pivotal.io/platform-as-aservice/pivotal-cloud-foundry
FF 90 day evaluation term, non-production use, up to 50 app instances
•• Pivotal Web Services – https://run.pivotal.io/
FF 60-day free trial (up to 2GB RAM)
Create a account @ Pivotal Web Services (PWS): http://run.pivotal.io/
Deploy the Sample App:
•• ActiveState Stackato – http://www.activestate.com/stackato
FF Free for production use up to 20GB RAM
•• AppFog – http://appfog.com/
FF 30-day free trial (up to 2GB RAM)
•• IBM Bluemix – http://www.ibm.com/software/bluemix/
FF 30-day free trial (up to 2GB RAM)
•• Pivotal Cloud Foundry – http://pivotal.io/platform-as-aservice/pivotal-cloud-foundry
FF 90 day evaluation term, non-production use, up to 50 app instances
•• Pivotal Web Services – https://run.pivotal.io/
FF 60-day free trial (up to 2GB RAM)
Create a account @ Pivotal Web Services (PWS): http://run.pivotal.io/
Deploy the Sample App:
- Download the app with git:
git clone https://github.com/cloudfoundry-samples/cf-sample-app-spring.git - Navigate to the app directory: cd cf-sample-app-spring
- Sign in to PWS: cf login -a https://api.run.pivotal.io
- Push the app to PWS: cf push my_app
- View a snapshot of recent logs: cf logs cf-spring --recent
- Stream live logs: cf logs cf-spring
- List the available ElephantSQL plans: cf marketplace -s elephantsql
- Create a service instance with the free plan: cf create-service elephantsql turtle cf-spring-db
- Bind the newly created service to the app: cf bind-service cf-spring cf-spring-db
NotE: Once a service is bound to an app, environment variables are stored that allow the app to connect to the service after a push, restage, or restart command. - Restart the app: cf restart cf-spring
- Verify the new service is bound to the app: cf services
- Create Eureka Server as eureka-service : cf cups eureka-service -p '{"uri":"https://eureka007.cfapps.io/"}'
- Delete eureka-service : cf delete-service eureka-service
- Increase the number of app instances to two: cf scale cf-spring -i 2
- Check the status of the app and verify there are two instances running: cf app cf-spring
NotE: Scaling your app vertically changes the disk space limit or memory limit for each app instance. - Increase the memory limit for each app instance: cf scale cf-spring -m 1G
- Increase the disk limit for each app instance: cf scale cf-spring -k 512M
No comments:
Post a Comment