New guy ... drowning

Hi
im having alot of trouble getting haproxy to work so i hope for a little help
i have a single Haproxy running and i need to test loadbalancing for our sw developer

i need to loadbalance(10.10.10.9)roundrobin HTTPS on port 443 to 10.10.10.10 and 10.10.10.11 but also TCP on port 9111 to 10.10.10.11 and 10.10.10.12 is this possible on a single haproxy?

i hope someone is kind enough to help or to point in the right direction

Hi KVT -

Yes, this is possible. A rough config might look like:

frontend ssl
  mode http
  listen :443
  use_backend ssl

frontend tcp
  mode tcp
  listen :9111
  use_backend tcp

frontend http
  mode http
  server s1 10.10.10.10:443
  server s2 10.10.10.10:443

frontend tcp
  mode tcp
  server s1 10.10.10.11:9111
  server s2 10.10.10.12:9111

Hope that helps!

  • Andrew