Custom Routing setup help

0

I am trying to setup a Global Accelerator using Custom Routing, but running into issues. I keep getting the following error:

There are not enough accelerator ports remaining to support the requested endpoint.

After looking into it, this part of the documentation catches me off guard:

Listener port ranges - We recommend that you allocate listener port ranges linearly and make the ranges large enough to support the number of destination ports that you intend to have. That is, the number of ports you should allocate should be at least the subnet size times the number of destination ports and protocols (destination configurations) that you will have in the subnet.

This is what strikes me as odd, or possibly I am trying to set it up the wrong way. This is what I hope to achieve:

  • I have a number of game servers running in us-west-2, lets say 2 EC2 instances. Each of these instances will be hosting one or more game sessions. I have configured it so that server1 will use ports 1000-1999, and server2 will user ports 2000-2999.
  • In the client, I want to be able to point to the Global Accelerator IP address, using a port from 1000-2999, and have it end up at either server1 or server2 depending on which port number is used.

So I set it up a custom accelerator, and add my first listener.

Listener port range: 1000-1999.
Endpoint Groups: One entry - us-west-2, Port range 1000-1999, Protocols TCP & UDP.
Endpoints: One entry - Subnet <my-subnet-us-west-2a>, Allow traffic to specific destination socket addresses, IP Address <server1 - 172.31.123.123 >, Ports 1000-1999.

After clicking save, I get the error:

There are not enough accelerator ports remaining to support the requested endpoint.

Am I going about this the wrong way entirely? I am a bit confused at the endpoint stage also, since I can just choose the entire subnet and leave it at 'Allow traffic' but what EC2 instance would it go to? Pick a random IP in that range and hope it maps to an active EC2 server?

Or is this where the documentation note comes into play - in that it is doing something like port 1000-1999 will be mapped to the first valid IP in the subnet. 2000-2999 would be mapped to the second valid IP, and so on and so forth, therefore needing a huge number of initial listener port ranges.

bfskyle
asked 3 years ago700 views
1 Answer
0

After further investigation, I found this page - https://docs.aws.amazon.com/global-accelerator/latest/dg/about-custom-routing-how-it-works.html - which has a more clear explanation of how the mappings work. I guess it is set up to map ports to every single IP address within the given subnet.

It's not exactly what I was expecting, but I can work with this understanding now and fit within the limitations to adapt to our needs.

bfskyle
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions