Re: - Reducing number of instances on a cloud foundry deployment


Amit Kumar Gupta
 

Hey Kinjal,

Your best bet, if you choose to use cf-boshworkspace, would be to open up
issues against their GitHub repo. The maintainers there will be able to
tell you if their stuff is up-to-date and expected to work with v222, what
sort of properties you need to put in your stub, etc. For starters, it
looks like you're missing values for "bulk_api_password",
"staging_upload_user", "db_encryption_key", and "staging_upload_password"
under the "cc" section of "properties".

Amit

On Fri, Dec 4, 2015 at 7:43 AM, Kinjal Doshi <kindoshi(a)gmail.com> wrote:

Thanks a lot for directing me towards this project. When I am trying to
deploy CF using this project, there are some issues as below:


1. 'bosh prepare deployment' fails because of checksum failure on
package buildpack_python
2. Alternatively I tried to upload release as directed in the 'Read
Me' of this project but there is a version mismatch, the read me suggests
uploading version 196 whereas the deployment manifest mentions version 222.
3. There are also some spiff merge issue as I get the below error on
using 'bosh deploy'

I have been able to resolve errors 1 and 2 but need help for point 3 as am
not well versed with spiff. Kindly help me resolve this error:

ubuntu(a)ip-172-31-38-159:~/cf-boshworkspace$ bosh deploy
Generating deployment manifest
Command failed: 'spiff merge
/home/ubuntu/cf-boshworkspace/templates/cf/cf-deployment.yml
/home/ubuntu/cf-boshworkspace/templates/cf/cf-resource-pools.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-tiny-scalable.yml
/home/ubuntu/cf-boshworkspace/templates/cf-uaa-port.yml
/home/ubuntu/cf-boshworkspace/templates/cf-allow-services-access.yml
/home/ubuntu/cf-boshworkspace/templates/cf/cf-properties.yml
/home/ubuntu/cf-boshworkspace/templates/cf/cf-infrastructure-aws.yml
/home/ubuntu/cf-boshworkspace/templates/cf-properties.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-jobs-nfs.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-jobs-uaa.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-jobs-base.yml
/home/ubuntu/cf-boshworkspace/templates/parallel.yml
/home/ubuntu/cf-boshworkspace/templates/cf-no-ssl.yml
/home/ubuntu/cf-boshworkspace/templates/cf-secrets.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-use-nfs.yml
/home/ubuntu/cf-boshworkspace/templates/tiny/cf-use-haproxy.yml
/home/ubuntu/cf-boshworkspace/templates/cf-networking.yml
/home/ubuntu/cf-boshworkspace/.stubs/cf-aws-tiny.yml 2>&1'
2015/12/04 14:02:53 error generating manifest: unresolved nodes:
(( merge )) in
/home/ubuntu/cf-boshworkspace/templates/cf/cf-properties.yml
properties.cc.staging_upload_user
(( merge )) in
/home/ubuntu/cf-boshworkspace/templates/cf/cf-properties.yml
properties.cc.staging_upload_password
(( bulk_api_password )) in dynaml
properties.cc.internal_api_password
(( merge )) in
/home/ubuntu/cf-boshworkspace/templates/cf/cf-properties.yml
properties.cc.db_encryption_key
(( merge )) in
/home/ubuntu/cf-boshworkspace/templates/cf/cf-properties.yml
properties.cc.bulk_api_password

Thanks in Advance,
Kinjal


On Thu, Dec 3, 2015 at 12:37 AM, Amit Gupta <agupta(a)pivotal.io> wrote:

The cf-boshworkspace project from Stark and Wayne:
https://github.com/cloudfoundry-community/cf-boshworkspace provides an
cf-aws-tiny.yml template, which I believe gets it down to 4 instances.

In principle, everything should be able to run on 1 VM, but my
understanding is there are port collisions that aren't configurable (yet),
and so 4 was the lower bound S&W found.

On Wed, Dec 2, 2015 at 4:33 AM, Kinjal Doshi <kindoshi(a)gmail.com> wrote:

Hi,

I am looking at miminal-aws.yml in the release
https://github.com/cloudfoundry/cf-release and realized that this
deployment will consume 13 instances on AWS.

Is it possible to reduce the number of instances for this deployment?

Thanks a lot for the help in advance.

Regards,
Kinjal

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.