Project 3

AWS Projects and experience

Route 53

Using a test Domain name from “Porkbun.com,” I ran an experiment to test each of the Route 53 Policy Types. 

Simple

Setup:

  • I set up one record with my three EC2 servers listed in it: Ohio, London, and Sydney

Results:

  • Every couple of minutes, Route53 would choose a random server. From London, to Ohio, to Sydney

Weighted

 

Setup:

  • I set up one record for each server with weighted routing
  • TTL = 60
  • Weights for each server: Ohio = 30 ; London = 50 ; Sydney = 20
  • I also matched each record with a health check

 

Results:

  • I got London server for 20 minutes of refreshing. After 20 minutes I got Ohio server
  • After 8 more minutes, I got Sydney server

Latency

 

Setup:

  • I set up one record for each server with latency routing
  • TTL = 60
  • I matched each server with their region
  • I also matched each record with a health check
  • I used “IP Vanish” for this exercise, so I can get around the world

 

Results:

  • I got London server immediately; it is the closest server to me
  • After connecting to Boston, in USA, I refreshed and got the Ohio server
  • I disconnected, and after about 5 minutes, I got London server again
  • I connected to Brisbane, in Australia, and after a couple of minutes I got Sydney server
  • After disconnecting from Brisbane, I got better latency to Ohio server over London server, so Route53 chose my Ohio server

Failover

Setup:

  • I set the London server with failover option to primary
  • I set the Ohio server with failover option to secondary
  • I removed the Sydney server record from Porkbun
  • I matched the two records with health checks
  • Stop the London instance for the failover to take action

Results:

  • I started off on the Sydney server until I removed the record from Porkbun; then I moved to London
  • In EC2, I stopped the London instance
  • Immediately, when I refreshed the DNS page, I resulted with the Ohio server; due to the failover
  • After starting the London instance, the health check on Route53 still considered it unhealthy. So I looked up that IP address again, and the health check was correct
  • Unexpectedly, I looked at my London instance again, and found out it had received a new IP address, so I had to update the information
  • I updated the information on Route53 health check, and then on Porkbun, and then on the Route53 Record
  • 6 minutes later, I got the London server

Geolocation

Setup:

  • I set up a record for each server with Geolocation routing
  • I matched the region with each instance: Ohio = North America; London = Europe; Sydney = Oceania
  • I used my mobile device for double checking
  • IP Vanish for switching regions on my PC

Results:

  • I noticed a problem with DNS where I was sent to the Sydney server, while I am located in Europe. Both on my computer and mobile device. This persisted for some time after setup
  • After 10 minutes, the DNS finally brought me to my London server
  • I changed my IP to Brisbane Australia, but I resulted immediately with Ohio server, which is incorrect
  • So I waited 10 minutes, and Route53 resolved to Sydney server
  • I decided to wait 10 more minutes, to prove that my results weren’t a coincidence
  • After 10 minutes for confirmation, my Route53 pointed to London server again, even though I am connected to Australia
  • As well, my mobile device changed from London, where it should be, to Sydney
  • Searching for Route53 Geolocation troubleshooting, the first solution was to create a record with default on it. So I created a default record, and mapped it to my London IP address
  • Immediately, I refreshed both my web browsers on my PC and mobile device. My PC resolved to Sydney (correct), and my mobile device resolved to London (correct).
  • The servers switched again after a minute
  • This is an area that I’m still exploring

*IF YOU KNOW THE PROBLEM, SEND ME A MESSAGE*

VPC

Connecting to Private Subnet Instance

Problem

After creating my instance and my security group that would allow for me to connect to the private instance using the public one, when I tried this process, the command line froze

Solution

For starters, hit “Ctrl+C” to exit out the command. I checked the subnet, then the security group rules, then the network ACL’s and also network interface. I re-watched the video of an instructor setting up their private instance, and figured out that I forgot to change my security group from the default, to the new one.

 

I never thought I needed to do this. Over in the Network ACL for my public subnet, I noticed I only had an SSH allow rule in the inbound section. In the outbound section, there were no SSH rules, so I set one, and it worked. I connected to my private instance.

To confirm the hypothesis, I took the new rule off again, and the SSH command stopped working, as expected.

Explanation: if public subnet does not allow SSH outbound with its’ NACL, you will not be able to SSH into any instance