Here we will discuss how the Route Table can be used to switch between nodes by creating an entry in the Route Table that points to the active node.
Create an IP Resource
Now you can create an IP resource. Note that the IP address of the resource must be located outside of the VPC. In this example, the IP resource is created using 10.10.10.10 (the VPC is defined as 10.20.0.0/16). Refer to Creating an IP Resource for more information.
Once the IP resource has been created, the LifeKeeper User Interface should look like this.
Assign Permission to Update Route Table Entries to Instances
Add Initial Route Table Entry for the Primary Host
Before creating the EC2 resource, we must first add the initial route to the route table for LK-VPC (i.e., LK-RouteTable).
- In the AWS Console, navigate to Services → VPC → Route Tables, click the route table associated with LK-VPC (LK-RouteTable), click the Routes tab, then click Edit Routes.
- In the resulting dialog, add a new route with the following parameters:
|Target||Select ‘Instance’, then select the instance ID for Node-A|
- Click Save changes to add the route to the route table.
Creating an EC2 Resource (Route Table Scenario)
Creating an EC2 Resource should be straightforward once an IP Resource has been created.
- Select the icon to start the “Create Resource Wizard”.
- Select “Amazon EC2” as the Recovery Kit.
- On the “Create Resource Wizard @ node-a”, specify the following values.
|EC2 Resource Type||Route Table (Backend Cluster)|
|EC2 Resource Tag||ec2-10.10.10.10|
- On the “Pre-Extend Wizard” specify the following values:
- Once Pre-Extend is completed, move on to “Extend comm/ec2 Resource”. Select “ec2-10.10.10.10”.
- Once “Hierarchy successfully extended” is displayed, the creation of the resource is now complete.
- The EC2 resource is created as shown below.
Thanks for your feedback.
Post your comment on this topic.