Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am changing CDNs and I would like to preload some content to AWS Cloud Front so that my origin server is not hammered during that transition. Any tips?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Create your CloudFront distribution and...

  • make CloudFront the CDN in a randomly selected 1% of pageviews
  • write a script to request all commonly used image paths from the CloudFront distribution at whatever pace you prefer
share|improve this answer
    
Do you know of any CDNs that allow you to "preload" content by uploading it somewhere? –  ckliborn Nov 20 '11 at 23:16
    
Anything that isn't "origin-pull" essentially works that way. It removes the big benefit of origin-pull, though, which is that if you forget to put a file on the CDN it isn't a problem, the CDN just pulls it off your server. You could do this with CloudFront by switching to an S3 bucket backed distribution instead of a custom origin. –  ceejayoz Nov 21 '11 at 2:41
    
The first option described is really the only way to go, as the second option would only prime the cache in one Amazon edge location. –  rmalayter Nov 22 '11 at 16:15
    
@rmalayter Great point. –  ceejayoz Nov 22 '11 at 16:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.