Data Integration Elastic Administration > AWS integration tasks > Prepare the VPC and subnets

Prepare the VPC and subnets

If you plan to create your own VPC and subnets to host an elastic cluster, prepare the VPC and subnets according to cluster requirements.
Complete the following tasks:

Create subnets with enough IP addresses

Create subnets that support enough IP addresses to assist an elastic load balancer and the nodes in the elastic cluster.
For each subnet, calculate the number of required IP addresses according to the following guidelines:
  1. 1. Add eight IP addresses to make sure that the elastic load balancer can scale properly.
  2. 2. Add one IP address for the master node. If you want to use a cluster that is highly available, add 3 IP addresses instead.
  3. 3. Add IP addresses equal to the maximum number of worker nodes.
For example, if the elastic cluster can have a maximum of 10 worker nodes, each subnet must support at least 19 IP addresses.

Verify the routing configuration

Verify that the VPC and subnets can route requests in an elastic cluster.
To make sure that the VPC and subnets can route requests, verify the following items on AWS:
For more information, refer to the AWS documentation.

Accept inbound traffic

Accept inbound traffic on the Secure Agent machine so that the Spark driver can communicate with the Secure Agent.
Complete the following tasks:
  1. 1. Add an inbound rule to the AWS security group that is attached to the Secure Agent machine.
  2. 2. Specify the port 0-65535 to accept inbound traffic.
  3. 3. Specify the VPC in CIDR notation.