marathon-lb icon indicating copy to clipboard operation
marathon-lb copied to clipboard

Multiple ports in HAPROXY_HTTP_FRONTEND_HEAD

Open artful88533 opened this issue 7 years ago • 2 comments

Hello! Is it possible add multiple ports instead one in template HAPROXY_HTTP_FRONTEND_HEAD ? And gather all virtual hosts for each frontends. For example:

frontend marathon_http_in_1
  bind *:8001
  mode http
frontend marathon_http_in_2
  bind *:8002
  mode http

artful88533 avatar Feb 18 '18 10:02 artful88533

@artful88533 You can bind the same frontend on multiple ports like this —

frontend marathon_http_in
  bind *:8001
  bind *:8002
  mode http

Does this work for your usecase?

paambaati avatar Mar 16 '18 03:03 paambaati

Thanks for answer! @paambaati I want do some tests with HAProxy multiple process.

In global I added

        nbproc 2
        cpu-map 1 0
        cpu-map 2 1

Then I want add different frontends for each process. For example:

frontend marathon_http_in_1
  bind *:8001
  bind-process 1
  mode http
frontend marathon_http_in_2
  bind *:8002
  bind-process 2
  mode http

And I want gather all virtual hosts for each frontends. Is it possible?

artful88533 avatar Mar 21 '18 08:03 artful88533