Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Reasoning on S3 bucket balancing over CDN
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luis Lavena  
View profile  
 More options Oct 28 2009, 11:45 pm
From: Luis Lavena <luislav...@gmail.com>
Date: Wed, 28 Oct 2009 20:45:22 -0700 (PDT)
Local: Wed, Oct 28 2009 11:45 pm
Subject: Reasoning on S3 bucket balancing over CDN
Hello Nick and fellow Gemcutter developers,

While digging in the code today, realize that Hostess contain this
particular line:

      if redirect
        redirect File.join("http://s3.amazonaws.com",
VaultObject.current_bucket, request.path_info)
      else

Is there a reasoning about the usage of the bucket directly instead of
using CloudFront?

In my experience the usage of Amazon CDN proved to increase download
speed for big files, ranging from 600K to 1.3MB, and not increasing
too much the running costs.

There are several "fatty" gems (mostly the ones that includes
binaries) that will benefit from it.

Wanted to ask instead of submitting this as a "feature" since I know
you guys are busy with subdomain stuff ;-)

Regards,
--
Luis Lavena


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Oct 28 2009, 11:49 pm
From: Nick Quaranto <n...@quaran.to>
Date: Wed, 28 Oct 2009 23:49:16 -0400
Local: Wed, Oct 28 2009 11:49 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN

I haven't had time to look into CloudFront yet, I would like to move there.
The biggest priority right now is the rubygems.org transition, if you'd like
to help out with this feature please let me know. :)

-Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Turk  
View profile  
 More options Oct 29 2009, 11:29 am
From: Trevor Turk <trevort...@gmail.com>
Date: Thu, 29 Oct 2009 08:29:12 -0700 (PDT)
Local: Thurs, Oct 29 2009 11:29 am
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Oct 28, 10:49 pm, Nick Quaranto <n...@quaran.to> wrote:

> I haven't had time to look into CloudFront yet, I would like to move there.
> The biggest priority right now is the rubygems.org transition, if you'd like
> to help out with this feature please let me know. :)

Using Cloudfront is a good idea, but its something that you'll
probably have to set up yourself because it requires access to your
DNS manager and the AWS Console. I'll try to cover the basics here, so
maybe it would save some time.

You'll want to decide on a CNAME to use like "s3.gemcutter.org" or
whatever.

Then, you can use the AWS console to "create a distribution" - which
means hooking a bucket up to Cloudfront.

https://console.aws.amazon.com/cloudfront/home

Here's an example: http://grab.by/d6i

Then you'll need to set the CNAME up in your DNS, using the value you
get from the AWS Console.

Another example: http://grab.by/d6k

The last step would be to change the code so that it switches to use
Cloudfront in production, I suppose.

I'll watch this thread, but let me know if you'd like any other help
setting this up.

Thanks for your work on Gemcutter. It's great stuff.

- Trevor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Oct 29 2009, 11:34 am
From: Nick Quaranto <n...@quaran.to>
Date: Thu, 29 Oct 2009 11:34:20 -0400
Local: Thurs, Oct 29 2009 11:34 am
Subject: Re: Reasoning on S3 bucket balancing over CDN

Thanks Trevor. Is the time to get files up on Cloudfront take any longer
than S3? That's my primary concern with switching to it. Currently the gems
are uploaded to S3 when you do `gem push` and then gem indexing is kicked
off in the background, and that usually takes around a minute to rebuild.

-Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Turk  
View profile  
 More options Oct 29 2009, 12:01 pm
From: Trevor Turk <trevort...@gmail.com>
Date: Thu, 29 Oct 2009 09:01:12 -0700 (PDT)
Local: Thurs, Oct 29 2009 12:01 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Oct 29, 10:34 am, Nick Quaranto <n...@quaran.to> wrote:

> Thanks Trevor. Is the time to get files up on Cloudfront take any longer
> than S3? That's my primary concern with switching to it. Currently the gems
> are uploaded to S3 when you do `gem push` and then gem indexing is kicked
> off in the background, and that usually takes around a minute to rebuild.

In my experience, using Cloudfront can simply be thought of as a
"faster way to access files on S3" -- files you put on S3 are
immediately accessible on Cloudfront in an invisible way. I believe
there can be a small lag while an asset is copied from S3 to a
Cloudfront edge network for an initial request, but subsequent
requests should be much faster.

To your question (I think) it appears that there can be a delay in
updating the edge servers, but it's supposedly very short. You can
read the part about Eventual Consistency here:

http://docs.amazonwebservices.com/AmazonCloudFront/2009-04-02/Getting...

So, it looks like Cloudfront might serve a "stale" version of a gem
for longer than S3 would. Do gems get new file names with new
versions, though? If so, I think that'd sidestep this potential
problem. If not, then I suppose you'd just have to decide if the
supposed speed gains of using Cloudfront would outweigh the chance of
serving stale gems for longer.

There's more details about how it works in general here:

http://aws.amazon.com/cloudfront/#details

No problem at all if you want to table this until after the
transition, but I'm happy to help if you're interested in
investigating this more.

- Trevor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luis Lavena  
View profile  
 More options Oct 29 2009, 12:24 pm
From: Luis Lavena <luislav...@gmail.com>
Date: Thu, 29 Oct 2009 09:24:03 -0700 (PDT)
Local: Thurs, Oct 29 2009 12:24 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Oct 29, 12:34 pm, Nick Quaranto <n...@quaran.to> wrote:

> Thanks Trevor. Is the time to get files up on Cloudfront take any longer
> than S3? That's my primary concern with switching to it. Currently the gems
> are uploaded to S3 when you do `gem push` and then gem indexing is kicked
> off in the background, and that usually takes around a minute to rebuild.

Gems will still be uploaded to S3. CloudFront happens in the
background for HTTP requests of those files using the CNAME from
Amazon or the one your provided.

Since gems are individual, versioned files, there will be no problem
for these.

On the otherhand, if you're uploading the marshal/indexes to S3, since
they use the same filename will take a bit longer to be replicated to
the edges of the CDN.

That is basic CDN functionality.

Either way, I've been using CloudFront to handle big files (1.5MB or
so) and updating of those get a penalty hit on the first request
(similar to S3 performance) and the subsequent requests get served
from the CDN.

So, in theory there will be no performance lost or delays compared to
the current situation.

This, since will be using the own CNAME as "cdn.gemcutter.org" or
"cloud.gemcutter.org" can workaround some of the concerns about
firewall policies of some companies with S3 buckets (s3.amazonaws.com
being blacklisted)

Cheers,
--
Luis Lavena


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
richardiux  
View profile  
 More options Nov 23 2009, 1:45 pm
From: richardiux <richard...@gmail.com>
Date: Mon, 23 Nov 2009 10:45:09 -0800 (PST)
Local: Mon, Nov 23 2009 1:45 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
The corporation I work with has s3.amazonaws.com blacklisted as well.
I'm guessing this is quite common.
Now that Gemcutter completed the migration, it is almost impossible
for us to install any gems.

Here is a gist with extra info:
http://gist.github.com/241258

On Oct 29, 8:24 am, Luis Lavena <luislav...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Barnette  
View profile  
 More options Nov 23 2009, 3:58 pm
From: John Barnette <jbarne...@gmail.com>
Date: Mon, 23 Nov 2009 12:58:34 -0800
Local: Mon, Nov 23 2009 3:58 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN

On Mon, Nov 23, 2009 at 10:45 AM, richardiux <richard...@gmail.com> wrote:
> The corporation I work with has s3.amazonaws.com blacklisted as well.
> I'm guessing this is quite common.
> Now that Gemcutter completed the migration, it is almost impossible
> for us to install any gems.

> Here is a gist with extra info:
> http://gist.github.com/241258

We can fix this with CNAMEs if Tom and Nick are up for it. If we do a
bucket called, say, "files.rubygems.org", we can add a CNAME record to
DNS that maps files.rubygems.org to
files.rubygems.org.s3.amazonaws.com and be in business.

~ j.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luis Lavena  
View profile  
 More options Nov 23 2009, 7:43 pm
From: Luis Lavena <luislav...@gmail.com>
Date: Mon, 23 Nov 2009 16:43:33 -0800 (PST)
Local: Mon, Nov 23 2009 7:43 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Nov 23, 5:58 pm, John Barnette <jbarne...@gmail.com> wrote:

> On Mon, Nov 23, 2009 at 10:45 AM, richardiux <richard...@gmail.com> wrote:
> > The corporation I work with has s3.amazonaws.com blacklisted as well.
> > I'm guessing this is quite common.
> > Now that Gemcutter completed the migration, it is almost impossible
> > for us to install any gems.

> > Here is a gist with extra info:
> >http://gist.github.com/241258

> We can fix this with CNAMEs if Tom and Nick are up for it. If we do a
> bucket called, say, "files.rubygems.org", we can add a CNAME record to
> DNS that maps files.rubygems.org to
> files.rubygems.org.s3.amazonaws.com and be in business.

Actually you map the CNAME to a CloudFront host, like this one:
dx36u3tp8d8kn.iad2.cloudfront.net (cdn.rubyinstaller.org)

--
Luis Lavena


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Barnette  
View profile  
 More options Nov 24 2009, 9:49 am
From: John Barnette <jbarne...@gmail.com>
Date: Tue, 24 Nov 2009 06:49:01 -0800
Local: Tues, Nov 24 2009 9:49 am
Subject: Re: Reasoning on S3 bucket balancing over CDN

On Mon, Nov 23, 2009 at 4:43 PM, Luis Lavena <luislav...@gmail.com> wrote:
> On Nov 23, 5:58 pm, John Barnette <jbarne...@gmail.com> wrote:
>> We can fix this with CNAMEs if Tom and Nick are up for it. If we do a
>> bucket called, say, "files.rubygems.org", we can add a CNAME record to
>> DNS that maps files.rubygems.org to
>> files.rubygems.org.s3.amazonaws.com and be in business.

> Actually you map the CNAME to a CloudFront host, like this one:
> dx36u3tp8d8kn.iad2.cloudfront.net (cdn.rubyinstaller.org)

Sorry, yes, I was talking specifically about solving the
"s3.amazonaws.com is blocked" problem, not moving the files to
CloudFront.

~ j.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RIlindo Foster  
View profile  
 More options Dec 13 2009, 12:30 am
From: RIlindo Foster <rili...@gmail.com>
Date: Sat, 12 Dec 2009 21:30:29 -0800 (PST)
Local: Sun, Dec 13 2009 12:30 am
Subject: Re: Reasoning on S3 bucket balancing over CDN
I take it that there is no update on this yet. :( Are the gemcutters
moving over from S3 standard bucket to a gemcutter
CNAME or CDN?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Dec 13 2009, 12:50 am
From: Nick Quaranto <n...@quaran.to>
Date: Sun, 13 Dec 2009 00:50:48 -0500
Local: Sun, Dec 13 2009 12:50 am
Subject: Re: [gemcutter] Re: Reasoning on S3 bucket balancing over CDN

I tried to look into this last weekend, and cloudfront didn't like that the
gemcutter bucket was named gemcutter_production (with a underscore) and I
got no further. Hopefully this week I'd like to get a simple cname set up
until that can be figured out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Copeland  
View profile  
 More options Dec 14 2009, 2:03 pm
From: Tom Copeland <t...@infoether.com>
Date: Mon, 14 Dec 2009 14:03:54 -0500
Local: Mon, Dec 14 2009 2:03 pm
Subject: Re: [gemcutter] Re: Reasoning on S3 bucket balancing over CDN
This sounds good to me.  What CNAME do we need created?  I can get Rich to make the DNS change...

Yours,

Tom

On Dec 13, 2009, at 12:50 AM, Nick Quaranto wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Turk  
View profile  
 More options Dec 14 2009, 2:29 pm
From: Trevor Turk <trevort...@gmail.com>
Date: Mon, 14 Dec 2009 11:29:14 -0800 (PST)
Local: Mon, Dec 14 2009 2:29 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Dec 14, 1:03 pm, Tom Copeland <t...@infoether.com> wrote:

> This sounds good to me.  What CNAME do we need created?  I can get Rich to make the DNS change...

I provided a quick overview with some examples from my Cloudfront
setup in this post:

http://groups.google.com/group/gemcutter/msg/c08441b18c20f225

It's a quick process, but still a bit of a pain :)

- Trevor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Copeland  
View profile  
 More options Dec 14 2009, 3:34 pm
From: Tom Copeland <t...@infoether.com>
Date: Mon, 14 Dec 2009 15:34:17 -0500
Local: Mon, Dec 14 2009 3:34 pm
Subject: Re: [gemcutter] Re: Reasoning on S3 bucket balancing over CDN

On Dec 14, 2009, at 2:29 PM, Trevor Turk wrote:

> On Dec 14, 1:03 pm, Tom Copeland <t...@infoether.com> wrote:
>> This sounds good to me.  What CNAME do we need created?  I can get Rich to make the DNS change...

> I provided a quick overview with some examples from my Cloudfront
> setup in this post:

> http://groups.google.com/group/gemcutter/msg/c08441b18c20f225

> It's a quick process, but still a bit of a pain :)

Thanks Trevor - but Nick, wasn't there some problem with our bucket name and Cloudfront?

Yours,

Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Dec 14 2009, 3:36 pm
From: Nick Quaranto <n...@quaran.to>
Date: Mon, 14 Dec 2009 15:36:23 -0500
Local: Mon, Dec 14 2009 3:36 pm
Subject: Re: [gemcutter] Re: Reasoning on S3 bucket balancing over CDN

Yeah, it didn't like the fact that our buckets have underscores
(gemcutter_production, gemcutter_staging) and stopped me from adding a
cloudfront distribution.

I haven't gotten around to copying all of the gems to a different bucket
yet, if you're willing to help me out with that and hopefully running it on
ec2 (could just be a tiny Heroku app) I'd appreciate it.

-Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Trevor Turk  
View profile  
 More options Dec 14 2009, 4:00 pm
From: Trevor Turk <trevort...@gmail.com>
Date: Mon, 14 Dec 2009 13:00:35 -0800 (PST)
Local: Mon, Dec 14 2009 4:00 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
On Dec 14, 2:36 pm, Nick Quaranto <n...@quaran.to> wrote:

> I haven't gotten around to copying all of the gems to a different bucket
> yet, if you're willing to help me out with that and hopefully running it on
> ec2 (could just be a tiny Heroku app) I'd appreciate it.

Sorry I missed that message, Tom. That's weird about the Cloudfront no-
underscores rule...

A quick Google turned up this post, which has a bit of Ruby code that
utilizes the S3 "copy" functionality. I think this technique could
probably be used pretty well:

http://www.lakedenman.com/2009/10/27/copying-files-between-s3-buckets...

I'm happy to help out with the work in getting this done but it would
require having the keys and such, so perhaps it's best left to you
guys. Please let me know if I can help, though.

- Trevor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shane  
View profile  
 More options Dec 15 2009, 4:37 pm
From: Shane <sh...@digitalsanctum.com>
Date: Tue, 15 Dec 2009 13:37:41 -0800 (PST)
Local: Tues, Dec 15 2009 4:37 pm
Subject: Re: Reasoning on S3 bucket balancing over CDN
I just wanted to chime in and say how crucial it is that a different
hostname is used as part of your move to CloudFront. After debugging
downloading gems from behind my employer's firewall I came to find out
that they block ANY Amazon S3 content.

Thanks,
Shane

On Dec 14, 4:00 pm, Trevor Turk <trevort...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vanillabean  
View profile  
 More options Dec 16 2009, 5:36 am
From: vanillabean <dmissikow...@gmail.com>
Date: Wed, 16 Dec 2009 02:36:03 -0800 (PST)
Local: Wed, Dec 16 2009 5:36 am
Subject: Re: Reasoning on S3 bucket balancing over CDN
I'd also like to add my voice to this. Same issue. Our corporate
firewall uses WebSense (should be WebNonsense) to blacklist, and S3 is
on the list.  This has seriously impacted my level of productivity as
I'm currently forced to grab the gems I need from an unprotected
network and then manually install the gems I need on all of the
machines behind the firewall.

On Dec 16, 5:37 am, Shane <sh...@digitalsanctum.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »