cloudfoundry on openstack iaas - understanding the stack - cloud-foundry

I am evaluating cloudfoundry (private cloud option) with Openstack as an IaaS candidate.
I have following setup in mind, but looks like I am missing some connections -
I will have OpenStack installed
On one VM on openstack (ubuntu 10.4 image), I will install cloudfoundry cloud_controller
On other multiple VMs on openstack, I will install cloudfoundry DEAs
And this I understand as called a multiple hosts installation of cloud foundry
Now when I push an application to cloudfoundry using VMC (with 5 instances request), One of the Cloudfoundry DEA will spawn 5 VMs on itself and deploy/run the app on all 5 cloudfoundry VMs
That means I have 5 instances of my app running
I can access the app through a single URL and cloudnfoundry controller/router will route the request to one of the running instances of my app
Now for scaling the infrastructure, I can reconfigure my openstack instances and restart them with new configuration (i.e. more volume, more RAM etc)
And for scaling the application, I can simply add more instances to the cloudfoundry vmc push command
Sorry for the writeup but pls suggest if this is a valid understanding (also if you guys have better options - basically we are looking at a scalable application and infrastructure for developers)
Thanks Much,

Vcap OSS questions are best directed to the vcap dev site and I would suggest you start there.

Related

Swisscom Cloud Foundry: Is there a way to request app instances to run in separate regions?

This is a question regarding the Swisscom CloudFoundry PaaS.
We use manifests to configure and provision our applications running in CloudFoundry. You can specify how many app instances you want to have running for an app there (or you can scale the app via cf scale APP_NAME 2).
What should I expect in terms of "regions" as to where these instances will be run?
Is there any way for me to tell CloudFoundry to run instances in separate datacenters / regions?
Will CloudFoundry itself try to start-up app instances in different locations?
Will CloudFoundry most likely start them very close to each other?
Is there simply no way of knowing / telling in which datacenter the App instances will run?
I would like to know what the recommended way is to run a CloudFoundry app on Swisscom's PaaS to maximise it's availability.
There is no way to tell CloudFoundry app instances in which datacenter to run
Yes, CloudFoundry distributes app instances across datacenters
No, CloudFoundry is distributing it
Yes, there is simply no way

Deploying a web application for Selenium testing on AWS EC2

I have a web application that uses Selenium in backend to run few scripts when invoked by user. I want to deploy this web app on AWS.
Here are my findings so far:
I can have a windows EC2 instance created and then I can install tomcat, firefox and all the necessary stuff. Then using putty or any other client, I can deploy my war and start tomcat.
I can directly make use of Elastic Beanstalk and deploy my war file there itself but then, there is no windows EC2 available for beanstalk and I don't know how to install firefox there and make my application work.
What is the best way to achieve this and what steps should I follow. I want to install a specific firefox version to be able to make it run with my selenium scripts.
There are two separate things here:
Deployment of web application on AWS cloud
Run the selenium tests against your web application
According to me, you should first think of deploying a web application to AWS cloud. There are many ways by which you can get it deployed to AWS cloud with below services:
Spin a new AWS EC2 instance, install all required software and deploy the web application.
Use AWS elastic beanstalk service with either with tomcat or docker.
Use AWS ECS if you prefer docker
According to me, second option will be quick for you with tomcat environment option. If you select tomcat environment, then your platform will be Tomcat 8 Java 8 on 64bit Amazon Linux.
Now, here comes the second part. You can have below options for your browser environments.
Spin a new separate AWS EC2 instances with correct AMI and install your specific browsers on these instances.
If you prefer SaaS, then you can take a look at browserstack or SauceLabs for remote environment.
If you have CI(jenkins/travis/Circle CI), then make use of that infrastructure to luanch your tests with either option from the above.

How bosh set the vm network in vsphere environment?

I am learning the bosh and cloudfoundry , I am curiosity about the vm network setting in the vsphere.
How the bosh setup the network (ip, gateway) for the vm in the vsphere. i know the bosh will fire a bosh-agent/nats-agent in the target vm to change the value, but how it first connect to the agent ?
because i am not familiar with go, ruby , so cannot figure out the code .
https://bosh.io/docs/vsphere-cpi.html explains interactions with VSphere, and related bosh configuration.
How the bosh setup the network (ip, gateway) for the vm in the vsphere.
Are you looking to understand how to configure bosh, or how the CPI interacts with vsphere?
The docs above answer the first part. As for how bosh CPI operates under the cover is uses the vsphere/SDK APIS documented here, https://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/index-methods.html

Cloud foundry installation on a centos VM(VMware)

Is it possible to install cloud foundry for centos on a virtual machine with centos installed?.
The actual answer depends on the purpose of the request.
If you just want to have a test/dev CF environment for local use - it is better to spin up PCF dev (https://pivotal.io/pcf-dev) using VirtualBox.
If you are looking for deployment of production scale Cloud Foundry instance then it would be a question of deploying Bosh director instance and then deploying multi-vm configuration Cloud Foundry configuration with VMware CPI (for deployment on ESX based private clouds)

Cloudfoundry Multi VM

I am pretty new to cloudfoundry. I am still trying to understand how exactly it works.
Say if I have three VMs. VM 1 is running on server A.
VM 2 and 3 are running on server B.
If I wanted to use a single CloudFoundry Instance on those three, would it work?
And if not, how could I use Cloudfoundry on multiple servers or at least multiple VMs? I know I can use BOSH to set them up, but do I still have to manage each instance seperately?
Thank you:
Jannis
BOSH will deploy VMs for you, you typically don't deploy Cloud Foundry onto existing VMs. BOSH supports deploying to several infrastructures. The core supported infrastructures include AWS, vSphere, OpenStack, and vCloud Air/vCloud Director. There are also community-provided "Cloud Provider Interfaces" for IBM SoftLayer, Azure, Google Compute Engine, and more.
Cloud Foundry is meant to be run as a distributed service, i.e. on multiple VMs. Typically those VMs will be on multiple different hosts, hardware racks, servers, datacenters, what have you. And BOSH is designed to facilitate deploying and managing distributed services like Cloud Foundry. So no, you do not need to manage individual VMs separately.
You can read more about BOSH and Deploying Cloud Foundry.