Re: Reg Combining the jobs of router and hm9000 in cf-231


Amit Kumar Gupta
 

Both HM analyzer and gorouter try to start a debug server serving on port
17001, so if you try to colocate them without any reconfiguration, you'll
hit this port collision. I don't know if the port is configurable for HM,
but for gorouter it certainly is:

https://github.com/cloudfoundry/cf-release/blob/v231/jobs/gorouter/spec#L37-L39

If I recall correctly, HM starts several debug servers on consecutive ports
17001 - 17009 or so, so you may want to configure the gorouter to use 17000
or 17010.

On Sat, Mar 26, 2016 at 10:34 AM, Nithiyasri Gnanasekaran -X (ngnanase -
TECH MAHINDRA LIM at Cisco) <ngnanase(a)cisco.com> wrote:

Hi



We are using cf-231 and trying to reduce the number of Cf VMs. Tried
combining router and hm9000

But after combining, we are getting the following error. Tried redeploying
freshly , but no luck.. Pls let us know if we can combine them together..



{"timestamp":1459009125.658613443,"process_id":2894,"source":"vcap.hm9000.analyzer","log_level":"error","message":"Failed
to start debug server - Error:listen tcp 0.0.0.0:17001: bind: address
already in use","data":null}

{"timestamp":1459009195.683453321,"process_id":3080,"source":"vcap.hm9000.analyzer","log_level":"error","message":"Failed
to start debug server - Error:listen tcp 0.0.0.0:17001: bind: address
already in use","data":null}

{"timestamp":1459009265.704365969,"process_id":3278,"source":"vcap.hm9000.analyzer","log_level":"error","message":"Failed
to start debug server - Error:listen tcp 0.0.0.0:17001: bind: address
already in use","data":null}

{"timestamp":1459009335.719108820,"process_id":3464,"source":"vcap.hm9000.analyzer","log_level":"error","message":"Failed
to start debug server - Error:listen tcp 0.0.0.0:17001: bind: address
already in use","data":null}



Job in Manifest:

-------------------

- instances: 2

name: router_hm9000

networks:

- name: ccc-bosh-net

properties:

consul:

agent:

services:

hm9000: {}

gorouter: {}

metron_agent:

zone: zone

route_registrar:

routes:

- name: hm9000

port: 5155

registration_interval: 20s

tags:

component: HM9K

uris:

- hm9000.<%= $root_domain %>

resource_pool: medium

templates:

- name: consul_agent

release: cf

- name: gorouter

release: cf

- name: hm9000

release: cf

- name: metron_agent

release: cf

- name: route_registrar

release: cf

update: {}

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