You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aaron Morris <aa...@mindspring.com> on 2003/10/24 20:00:58 UTC

[users@httpd] IP Based VHosting vs. Name Based VHosting

Can anyone out there point me to some documentation or performance 
comparisons on IP vs NB virtual hosting.  I have not had much luck 
finding any information on this.

I would like to go a bit deeper than just looking at the number of open 
file descriptors and look at what happens under heavy loads.

-- 
Aaron W Morris <aa...@mindspring.com> (decep)




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] IP Based VHosting vs. Name Based VHosting

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 24 Oct 2003, Aaron Morris wrote:
> The only reason I mentioned file-descriptors is with IP based vhosting
> you are listening on multiple ports, each port you listen to is an
> additional open file-descriptor (I know, this means very little in the
> long run).

True.  I forgot about that.

> I remember reading somewhere on the internet (first clue of bogus info)
> that with IP based vhosting you have the possibility of one of the
> vhosts hogging processes, ie one vhost having more child
> processes/threads being dedicated to it than other vhosts.  I realize
> that one vhost could possibly use up all free processes and not leave
> any over for other vhosts, but I just wanted to make sure that there are
> no special considerations for IP based vhosting.

The only thing I can think of is that, when you listen on more than one
port, the "accept locking" works differently.  See "Accept Serialization":
http://httpd.apache.org/docs-2.0/misc/perf-tuning.html#compiletime

Other than that, IP based virtual hosting can make it easier to deal with
denial of service attacks, since you can isolate the requests by IP at the
OS or router level.

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] IP Based VHosting vs. Name Based VHosting

Posted by Aaron Morris <aa...@mindspring.com>.

Joshua Slive wrote:

> On Fri, 24 Oct 2003, Aaron Morris wrote:
> 
> 
>>Can anyone out there point me to some documentation or performance
>>comparisons on IP vs NB virtual hosting.  I have not had much luck
>>finding any information on this.
>>
>>I would like to go a bit deeper than just looking at the number of open
>>file descriptors and look at what happens under heavy loads.
> 
> 
> There is VERY little difference.  To the client, it looks exactly the
> same.  For apache, IP based virtual hosting may be just a tiny bit
> quicker, because there is a hash-table lookup rather than a linear lookup
> (this may have changed in 2.0, I'm not sure), but the difference is
> probably undetectable for any reasonable number of vhosts.
> 
> I'm not sure why you even mention file descriptors, since there shouldn't
> be any difference there between IP and name based virtual hosts.
> 
> The only real differences I know of are the ones listed here:
> http://httpd.apache.org/docs-2.0/vhosts/name-based.html
> 
> Joshua.

The only reason I mentioned file-descriptors is with IP based vhosting 
you are listening on multiple ports, each port you listen to is an 
additional open file-descriptor (I know, this means very little in the 
long run).

I remember reading somewhere on the internet (first clue of bogus info) 
that with IP based vhosting you have the possibility of one of the 
vhosts hogging processes, ie one vhost having more child 
processes/threads being dedicated to it than other vhosts.  I realize 
that one vhost could possibly use up all free processes and not leave 
any over for other vhosts, but I just wanted to make sure that there are 
no special considerations for IP based vhosting.

-- 
Aaron W Morris <aa...@mindspring.com> (decep)




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] IP Based VHosting vs. Name Based VHosting

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 24 Oct 2003, Aaron Morris wrote:

> Can anyone out there point me to some documentation or performance
> comparisons on IP vs NB virtual hosting.  I have not had much luck
> finding any information on this.
>
> I would like to go a bit deeper than just looking at the number of open
> file descriptors and look at what happens under heavy loads.

There is VERY little difference.  To the client, it looks exactly the
same.  For apache, IP based virtual hosting may be just a tiny bit
quicker, because there is a hash-table lookup rather than a linear lookup
(this may have changed in 2.0, I'm not sure), but the difference is
probably undetectable for any reasonable number of vhosts.

I'm not sure why you even mention file descriptors, since there shouldn't
be any difference there between IP and name based virtual hosts.

The only real differences I know of are the ones listed here:
http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] IP Based VHosting vs. Name Based VHosting

Posted by suomi <ap...@ayni.com>.
Hi Aaron
with IP based VH you are better up, if you use SSL, because then you can 
assign a certificate to each of your VHs, whereas with N based VH you 
have only one certificate per host:port.

suomi

Aaron Morris wrote:

> Can anyone out there point me to some documentation or performance 
> comparisons on IP vs NB virtual hosting.  I have not had much luck 
> finding any information on this.
>
> I would like to go a bit deeper than just looking at the number of 
> open file descriptors and look at what happens under heavy loads.
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org