Tuesday, September 17, 2013

Checking the amazon cloudfront edge-location in use

You have uploaded your files in Amazon S3 or Custom Origin. Created a cloudfront distribution. You checked and everything is working. Amazon has started new edge-locations in India. Mumbai and Chennai. How can you check your files are served from nearest edge? Or is it served from far edge? Then you have to change something. Getting the content from the nearest edge will reduce the latencies and improve the quality of service.

You can verify this two ways.

1) You can check Using the Amazon test tool. Easiest way.
2) Enable the cloudfront logs and check the logs. Little painful. But worth it.