Here we will discuss how to switch between nodes using an Elastic IP address by creating an entry that points to the active node.

Assign Permission to Update Route Table Entries to Instances

You will also need to acquire an Elastic IP. In the example below the Elastic IP address is 107.20.190.240. Note that this IP address is an example value.

Creating an EC2 Resource (Elastic IP Scenario)

Complete the following steps to create an EC2 resource using the Elastic IP (Frontend Cluster) scenario.

  1. Click the “Operations” dropdown and select “Create Resource Hierarchy”
  1. Select “node-a” as the server and “Amazon EC2” as the Recovery Kit. Then click “NEXT”.

  1. When prompted for the resource type, select “Elastic IP”. For the Elastic IP and Network interface selection boxes that appear, select the desired Network Interface and Elastic IP that this IP exists upon.

Field
Value
Resource Type Elastic IP
Network Interface eth0 (or corresponding network interface card for the Elastic IP
Elastic IP Select an available Elastic IP from the list.
For example,107.20.190.240
  1. In the “Additional Settings” stage, select or enter the EC2 Resource Tag and Switchback Type. Then click “NEXT”.

Field
Value
EC2 Resource Tag ec2-107.20.190.240
Switchback Type Intelligent
  1. Review your settings and click “EXECUTE” when ready.

  1. Once the resource is created, select “EXTEND RESOURCE HIERARCHY”.

  1. When prompted to select a server and resource to extend, select “node-b” for the Target server, and 10 for the target priority. Then click “NEXT.
Field
Value
Template Priority 1
Target Server node-b
Target Priority 10

  1. Once “Pre-Extend Checks” are complete, click “NEXT”
  2. For “Additional Settings”, select the Switchback Type and Resource. Then click “NEXT”
Field
Value
Switchback Type Intelligent
Resource ec2-107.20.190.240

  1. Review the Extend settings, then click “EXECUTE”
  2. The resource will extend to node-b. When “Extending Resource Hierarchy” completes, click “CLOSE”.

Below is a view of the hierarchy after completing the above steps.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment