Route53 weighted policy not working with cloud-front distributions.

0

I have 2 cloudfront distributions - A and B. I created route53 records with weighted policy as 255 for B and 0 for A. I was expecting to see content in B but I see content in A no matter what I do. Can someone please help me here?

asked a year ago272 views
1 Answer
0

Amazon Route 53 weighted routing lets you associate multiple resources with a single domain name (example.com) or subdomain name (acme.example.com) and choose how much traffic is routed to each resource. This can be useful for a variety of purposes, including load balancing and testing new versions of a website or web application.

In your case, you have two CloudFront distributions (A and B) and you've set up weighted routing in Route 53 with weights of 255 for B and 0 for A. This should, in theory, direct all traffic to B and none to A.

However, you're seeing content from A instead of B. Here are a few things you could check:

  • Propagation Time: DNS changes can take some time to propagate. It can take up to 72 hours for DNS changes to propagate worldwide, although it usually happens much faster. If you've recently made the changes, you might just need to wait a bit longer.

  • DNS Cache: Your local system or network might be caching the old DNS records. You can try clearing your DNS cache or using a different device/network to see if the issue persists.

  • Record Settings: Double-check your Route 53 record settings to make sure they're correct. Make sure you've associated the correct CloudFront distribution with each record and that the weights are set as intended.

  • Health Checks: If you're using health checks in Route 53, make sure that both of your CloudFront distributions are passing their health checks. If a resource fails a health check, Route 53 will not route traffic to it, regardless of the weights you've set.

  • Browser Cache: Your browser might be caching the old version of the site. Try clearing your browser cache or using a different browser to see if the issue persists.

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions