Can HAProxy use the port that is part of the domain?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am setting up a cluster of servers which all run a dynamic number of services on some random ports. Each service binds to the same port on all servers.
I would like to put HAProxy in front of these servers to load balance the incoming traffic, and give clients a predictable entrypoint into the service, given they know the port of the service.
Here's a rough example of how I would like to map a given domain to my three servers. The wildcard *.example.com
is pointing to the HAProxy.
32001.example.com:
- 10.0.0.1:32001
- 10.0.0.2:32001
- 10.0.0.3:32001
32002.example.com:
- 10.0.0.1:32002
- 10.0.0.2:32002
- 10.0.0.3:32002
...
35999.example.com:
- 10.0.0.1:35999
- 10.0.0.2:35999
- 10.0.0.3:35999
36000.example.com:
- 10.0.0.1:36000
- 10.0.0.2:36000
- 10.0.0.3:36000
...
Is this possible without creating a humongous config file?
haproxy
add a comment |Â
up vote
0
down vote
favorite
I am setting up a cluster of servers which all run a dynamic number of services on some random ports. Each service binds to the same port on all servers.
I would like to put HAProxy in front of these servers to load balance the incoming traffic, and give clients a predictable entrypoint into the service, given they know the port of the service.
Here's a rough example of how I would like to map a given domain to my three servers. The wildcard *.example.com
is pointing to the HAProxy.
32001.example.com:
- 10.0.0.1:32001
- 10.0.0.2:32001
- 10.0.0.3:32001
32002.example.com:
- 10.0.0.1:32002
- 10.0.0.2:32002
- 10.0.0.3:32002
...
35999.example.com:
- 10.0.0.1:35999
- 10.0.0.2:35999
- 10.0.0.3:35999
36000.example.com:
- 10.0.0.1:36000
- 10.0.0.2:36000
- 10.0.0.3:36000
...
Is this possible without creating a humongous config file?
haproxy
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am setting up a cluster of servers which all run a dynamic number of services on some random ports. Each service binds to the same port on all servers.
I would like to put HAProxy in front of these servers to load balance the incoming traffic, and give clients a predictable entrypoint into the service, given they know the port of the service.
Here's a rough example of how I would like to map a given domain to my three servers. The wildcard *.example.com
is pointing to the HAProxy.
32001.example.com:
- 10.0.0.1:32001
- 10.0.0.2:32001
- 10.0.0.3:32001
32002.example.com:
- 10.0.0.1:32002
- 10.0.0.2:32002
- 10.0.0.3:32002
...
35999.example.com:
- 10.0.0.1:35999
- 10.0.0.2:35999
- 10.0.0.3:35999
36000.example.com:
- 10.0.0.1:36000
- 10.0.0.2:36000
- 10.0.0.3:36000
...
Is this possible without creating a humongous config file?
haproxy
I am setting up a cluster of servers which all run a dynamic number of services on some random ports. Each service binds to the same port on all servers.
I would like to put HAProxy in front of these servers to load balance the incoming traffic, and give clients a predictable entrypoint into the service, given they know the port of the service.
Here's a rough example of how I would like to map a given domain to my three servers. The wildcard *.example.com
is pointing to the HAProxy.
32001.example.com:
- 10.0.0.1:32001
- 10.0.0.2:32001
- 10.0.0.3:32001
32002.example.com:
- 10.0.0.1:32002
- 10.0.0.2:32002
- 10.0.0.3:32002
...
35999.example.com:
- 10.0.0.1:35999
- 10.0.0.2:35999
- 10.0.0.3:35999
36000.example.com:
- 10.0.0.1:36000
- 10.0.0.2:36000
- 10.0.0.3:36000
...
Is this possible without creating a humongous config file?
haproxy
asked Feb 8 at 9:33
Christoffer Reijer
1436
1436
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20
add a comment |Â
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422755%2fcan-haproxy-use-the-port-that-is-part-of-the-domain%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I don;t think so, because haproxy needs to be able to check the health of the backend servers independent of what requests come in. So it needs to know the IP/port of all backend servers beforehand. Perhaps haproxy is not the right tool here.
â wurtel
Feb 8 at 10:20