Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Dec 23, 2007 9:31 am 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Hello,

I read (http://www.die.net/musings/page_load_time/) that to reduce page loading time, it was good to use several hostnames:
"Rather than having all <img> tags load objects from http://static.example.com/, create four hostnames (e.g. static0.example.com, static1.example.com, static2.example.com, static3.example.com) and use two bits from an MD5 of the image path to choose which of the four hosts you reference in the <img> tag."
Does that strategy work on a linode?
Typing hostname returns something like 'li17-118' so if I were to create many subdomains, I would still have one hostname? Thanks for any comment on that strategy
Regards


Top
   
 Post subject:
PostPosted: Sun Dec 23, 2007 11:53 am 
Offline
Junior Member

Joined: Thu Mar 22, 2007 1:39 am
Posts: 22
I think this refers to most browsers allowing only a set number of concurrent connections to a web host (usually 2 or 4).

For example, if you link to your website with 8 images, only 2 will load at a time.

Perhaps what the article is stating is that if you have the linked as different domain names, it tricks the browser into thinking those are separate hosts, thus allowing more concurrent connections.

I guess it's a good idea. Is it really necessary?


Top
   
 Post subject:
PostPosted: Sun Dec 23, 2007 8:41 pm 
Offline
Junior Member

Joined: Tue Apr 25, 2006 8:02 pm
Posts: 23
Location: At the helldesk
Look at this one the other way round: How many requests can your apache setup take simultaneously before meltdown, thus how many concurrent visitors can your site cope with?

_________________
Open Sorcery
http://technomancer.me.uk


Top
   
 Post subject:
PostPosted: Mon Dec 24, 2007 12:00 am 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Assuming the strategy makes sense for a specific case, can it be implemented on a linode?
I was thinking that an hostname is really the machine hosting the linode. If I create several subdomains for my linode, wouldn't all those subdomains have the same hostname? At that point, I would need to have a couple of linodes and make sure they are on different machines. is that right? Or maybe a machine hosting linodes has as many hostnames as it has of linodes?


Top
   
 Post subject:
PostPosted: Mon Dec 24, 2007 5:12 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
I use this strategy for images - one Linode, multiple subdomains pointing to the same address. It works great. Very noticeable reduction in page load time.

James


Top
   
 Post subject:
PostPosted: Tue Dec 25, 2007 9:34 pm 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Or you can just edit the value in your browser to allow more concurrent connections.

Or just use less images ;)


Top
   
 Post subject:
PostPosted: Wed Dec 26, 2007 8:04 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
OverlordQ wrote:
Or you can just edit the value in your browser to allow more concurrent connections.


Now that sounds perfect. How can I do that remotely to the browsers of everyone using my web site? Is there a method that works on all browsers, or at least the major ones? Using that technique, I won't need multiple subdomains at all.


OverlordQ wrote:
Or just use less images ;)


My site has error histograms, value histograms, error plots, curve plots, surface plots, contour plots, etc. - using less images seems impractical. Perhaps you mean I should consider using an ASCII-only charting library, how would that work for 3D surface plots?

James


Top
   
 Post subject:
PostPosted: Thu Dec 27, 2007 7:52 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
jcr wrote:
Assuming the strategy makes sense for a specific case, can it be implemented on a linode?
I was thinking that an hostname is really the machine hosting the linode. If I create several subdomains for my linode, wouldn't all those subdomains have the same hostname?


The terminology is confusing. In particular, in DNS land, the term "domain name" can include the individual host reference. Thus, "example.com" is a domain name, as so is "www.example.com", and so is "mail.example.com". None of these are required to match what is returned by "hostname" on the actual machine, although it usually does. So yes, you can do this. ( won't even mention the other use of "domain name", which has to do with NIS domains.)

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Fri Dec 28, 2007 9:34 am 
Offline
Senior Member
User avatar

Joined: Sat Jul 01, 2006 7:36 am
Posts: 50
Location: Ghent, Belgium
Another advantage of using a statis subdomain is that the visiter cookies is not send to the server when asking for an image/javascript/css. And when you run Lighttpd, like me, then you can set your config file that on the static part he doesn't need to load PHP. I'm also planning to use static domein names 8)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group