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.
- Click the “Operations” dropdown and select “Create Resource Hierarchy”
- Select “node-a” as the server and “Amazon EC2” as the Recovery Kit. Then click “NEXT”.
- 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.
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 |
- In the “Additional Settings” stage, select or enter the EC2 Resource Tag and Switchback Type. Then click “NEXT”.
EC2 Resource Tag | ec2-107.20.190.240 |
Switchback Type | Intelligent |
- Review your settings and click “EXECUTE” when ready.
- Once the resource is created, select “EXTEND RESOURCE HIERARCHY”.
- 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.
Template Priority | 1 |
Target Server | node-b |
Target Priority | 10 |
- Once “Pre-Extend Checks” are complete, click “NEXT”
- For “Additional Settings”, select the Switchback Type and Resource. Then click “NEXT”
Switchback Type | Intelligent |
Resource | ec2-107.20.190.240 |
- Review the Extend settings, then click “EXECUTE”
- 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.
Post your comment on this topic.