Skip to content

How does subnet selection works in DMS subnet groups?

0

Hello, I have a question regarding DMS subnet groups.

Given:

  • One VPC with a few subnets across different availability zones;
  • Subnets have a very limited number of IP addresses;
  • Subents are also used by other services (e.g. EKS);

If I create a single DMS subnet group and let it use ALL the subnets, will DMS choose a subnet randomly or what? We would like DMS to take IP addresses so that they are evenly distributed across all the subnets.

1 Answer
0

When you create a DMS replication subnet group, you need to specify at least two subnets that are in separate Availability Zones, and all subnets must be in the same VPC.

AWS DMS doesn't explicitly document a specific subnet selection strategy when multiple subnets are included in a subnet group. When you create a replication subnet group, you only specify the subnets, and AWS DMS determines the VPC on your behalf (as each subnet is linked to exactly one VPC).

Unlike some other AWS services that have documented subnet selection strategies (such as Amazon EMR, which evaluates subnets based on available IP addresses), DMS doesn't provide clear documentation on how it chooses between available subnets in a subnet group.

If you're concerned about IP address availability across your subnets, especially since they're shared with other services like EKS and have limited IP addresses, it would be prudent to:

  1. Monitor your subnet IP utilization
  2. Ensure you have sufficient IP addresses available across all subnets
  3. Consider using larger CIDR blocks for your subnets if possible
  4. Include multiple subnets across different Availability Zones in your subnet group to increase the likelihood of having available IP addresses

If you need a more predictable IP allocation strategy, you might want to create separate subnet groups with specific subnets designated for DMS usage to better control where your DMS resources are placed.
Sources
Setting up a network for a replication instance - AWS Database Migration Service
Enhance your workload resilience with new Amazon EMR instance fleet features | AWS Big Data Blog
Creating a subnet group for an AWS DMS migration project - AWS Database Migration Service

answered a year ago

EXPERT

reviewed a year 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.