195k views
5 votes
What is the minimum CIDR network subnet for each of the VPCs (non-prod and prod) if you have 4 different environments: Dev, staging, performance and production, 50 applications deployed in each environment, and each Mule application will be deployed to two workers in performance and production environment?

User Josh Jolly
by
7.8k points

1 Answer

2 votes

Final answer:

The minimum CIDR network subnet for the Dev and Staging VPCs is a /26, providing 64 IP addresses. For the Performance and Production VPCs, a /25 subnet is required, offering 128 IP addresses, to accommodate the number of workers per application.

Step-by-step explanation:

The question asks what is the minimum CIDR network subnet requirement for Amazon Virtual Private Clouds (VPCs) within four different environments (Dev, staging, performance, and production) with 50 applications in each, and each application in the performance and production environments being deployed to two workers.

To determine the minimum CIDR network subnet, we consider each environment needs a unique subnet. If each application is deployed to two workers in performance and production environments, that doubles the number of required network addresses in these two environments. Assuming each worker needs one IP address, and each subnet requires two additional addresses (network and broadcast), we can calculate the number of IP addresses required per environment.

In the non-production environments (Dev and staging), 50 applications each need 1 IP:

  • 50 applications + 2 IP addresses (network and broadcast) = 52 IP addresses.

In the performance and production environments:

  • 50 applications * 2 workers each + 2 IP addresses (network and broadcast) = 102 IP addresses.

The smallest subnet that can accommodate 102 IP addresses is a /25 subnet, which provides 128 IP addresses.

Therefore, each VPC for Dev and staging can utilize a /26 subnet (64 IPs) while performance and production will require at least a /25 subnet.

User Rauch
by
7.9k points