HAProxy community

How can a frontend utilize all servers from multiple backend without repeating code


#1

Is it possible to combine multiple backend (like in fe-b frontend below) on HAProxy 1.8 so that the servers from both backend can be used within frontend without repeating the servers on backend.

frontend fe-a
	...
	mode tcp
	use_backend be-test-1

frontend fe-b
	...
	mode tcp
	use_backend >>>### USE SERVERS FROM BOTH be-test-1 AND be-test-2 ###<<<

backend be-test-1
	...
	mode tcp
	server srv-1 111.111.111.1:4567 check
	server srv-2 111.111.111.2:4567 check

backend be-test-2
	...
	mode tcp
	server srv-1 222.222.222.1:4567 check
	server srv-2 222.222.222.2:4567 check