Re: Reg combining vms in cf-231


Amit Kumar Gupta
 

Separate VM not necessary, you need a consul server cluster though, can't
just have consul agents in client mode. Your server cluster can be
colocated with other VMs, and the servers can act as clients broadcasting
services.

On Mon, Apr 25, 2016 at 10:37 AM, Nithiyasri Gnanasekaran -X (ngnanase -
TECH MAHINDRA LIM at Cisco) <ngnanase(a)cisco.com> wrote:

Forgot to mention that I collocated consul_agent with api_worker and also
enabled it in server mode and removed it as a separate vm.

Even after this, the consul_agent process was not coming up in router..



*From:* Nithiyasri Gnanasekaran -X (ngnanase - TECH MAHINDRA LIM at
Cisco)
*Sent:* Monday, April 25, 2016 10:55 PM
*To:* 'Amit Gupta' <agupta(a)pivotal.io>
*Cc:* Discussions about Cloud Foundry projects and the system overall. <
cf-dev(a)lists.cloudfoundry.org>
*Subject:* RE: Reg combining vms in cf-231



Hi Amit



Pls let me know if consul as a separate vm is necessary for cf-231
deployment, though we collocate consul_agent in every other job of cf-231



Regards

Nithiyasri



*From:* Amit Gupta [mailto:agupta(a)pivotal.io <agupta(a)pivotal.io>]
*Sent:* Monday, April 25, 2016 9:57 PM
*To:* Nithiyasri Gnanasekaran -X (ngnanase - TECH MAHINDRA LIM at Cisco) <
ngnanase(a)cisco.com>
*Cc:* Discussions about Cloud Foundry projects and the system overall. <
cf-dev(a)lists.cloudfoundry.org>; Jayarajan Ramapurath Kozhummal (jayark) <
jayark(a)cisco.com>
*Subject:* Re: Reg combining vms in cf-231



Your first job has consul services, so you'll need to colocate the
consul_agent there too. You also don't have any consul servers running
anywhere.



On Mon, Apr 25, 2016 at 7:25 AM, Nithiyasri Gnanasekaran -X (ngnanase -
TECH MAHINDRA LIM at Cisco) <ngnanase(a)cisco.com> wrote:

Hi Amit

I am using cf-231 release.

In the spiff generated yml, I could combine api_worker and
cloud_controller jobs into one, dea-spare with router.

But when I remove consul as a separate VM and combine it with api_worker
and cloud_controller . The consul process is not starting in router and
haproxy.

If I have a separate consul vm, this problem doesn’t occur.



Following is the consul process error in router.



error during start: timeout exceeded

2016/04/25 08:57:06 [ERR] agent.client: Failed to decode response header:
EOF

++ logger -p user.info -t vcap.consul-agent

++ tee -a /var/vcap/sys/log/consul_agent/consul_agent.stdout.log

error during start: timeout exceeded

2016/04/25 08:58:15 [ERR] agent.client: Failed to decode response header:
EOF

++ logger -p user.info -t vcap.consul-agent

++ tee -a /var/vcap/sys/log/consul_agent/consul_agent.stdout.log



Pls let me know how can I fix this.



Regards

Nithiyasri




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