/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-05 / Backends over Unix domain socket

[ << ] [ >> ]

[ pound 2.0.5 config file syntax / Michael Kaplan ... ] [ redirect all request with file uploads to a ... ]

Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-16 00:03:06 [ SNIP ]
Hi, 

It doesn't appear possible now, but is there some technical limitation
that would prevent pound from connecting to backends over a local domain
socket rather than a TCP port (provided pound and backend reside on same
system, of course)?  There would seem to be some benefits to do doing so
(correct me if I'm wrong on any or all): 

1) performance
2) reduced resource consumption (in terms of ports)
3) simplified permissions (file permissions to restrict access vs using
something like selinux to secure ports)

If this idea isn't out in left field, where would I make a feature
request?

Regards,
Cliff

-- 


Re: [Pound Mailing List] Backends over Unix domain socket
Robert Segall <roseg(at)apsis.ch>
2006-05-17 19:34:36 [ SNIP ]
On Mon, 2006-05-15 at 15:03 -0700, Cliff Wells wrote:
> Hi, 
> 
> It doesn't appear possible now, but is there some technical limitation
> that would prevent pound from connecting to backends over a local domain
> socket rather than a TCP port (provided pound and backend reside on same
> system, of course)?  There would seem to be some benefits to do doing so
> (correct me if I'm wrong on any or all): 
> 
> 1) performance
> 2) reduced resource consumption (in terms of ports)
> 3) simplified permissions (file permissions to restrict access vs using
> something like selinux to secure ports)
> 
> If this idea isn't out in left field, where would I make a feature
> request?

There is no serious technical limitation - a Unix domain socket supports
pretty much the same operations as an IP socket. The real question is
what would it be used for: which web servers do you know of that support
Unix domain sockets?
-- 
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-44-920 4904


Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-17 21:21:54 [ SNIP ]
On Wed, 2006-05-17 at 19:34 +0200, Robert Segall wrote:

> There is no serious technical limitation - a Unix domain socket supports
> pretty much the same operations as an IP socket. The real question is
> what would it be used for: which web servers do you know of that support
> Unix domain sockets?

Lighttpd for one, but mostly for web frameworks that don't have to
reside behind a webserver (i.e. Ruby on Rails, TurboGears, Twisted,
etc).  All of these (and many others) can all use domain sockets.

There are many companies (myself included) that specialize in hosting
these types of frameworks and I know for myself I'd rather use a domain
socket if possible.

Regards,
Cliff



Re: [Pound Mailing List] Backends over Unix domain socket
Robert Segall <roseg(at)apsis.ch>
2006-05-18 18:51:57 [ SNIP ]
On Wed, 2006-05-17 at 12:21 -0700, Cliff Wells wrote:
> On Wed, 2006-05-17 at 19:34 +0200, Robert Segall wrote:
> 
> > There is no serious technical limitation - a Unix domain socket supports
> > pretty much the same operations as an IP socket. The real question is
> > what would it be used for: which web servers do you know of that support
> > Unix domain sockets?
> 
> Lighttpd for one, but mostly for web frameworks that don't have to
> reside behind a webserver (i.e. Ruby on Rails, TurboGears, Twisted,
> etc).  All of these (and many others) can all use domain sockets.
> 
> There are many companies (myself included) that specialize in hosting
> these types of frameworks and I know for myself I'd rather use a domain
> socket if possible.

OK, we'll have a look at it. If it's not too much work (which I don't
expect) it'll show up soon.
-- 
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-44-920 4904


Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-18 21:03:47 [ SNIP ]
On Thu, 2006-05-18 at 18:51 +0200, Robert Segall wrote:

> OK, we'll have a look at it. If it's not too much work (which I don't
> expect) it'll show up soon.

That's great.  I'd be more than willing to beta test for you as well.
Thanks a lot.

Regards,
Cliff


Re: [Pound Mailing List] Backends over Unix domain socket
gauze(at)dropdead.org
2006-05-18 21:15:46 [ SNIP ]
Quoting Cliff Wells <cliff(at)develix.com>:

> On Thu, 2006-05-18 at 18:51 +0200, Robert Segall wrote:
>
>> OK, we'll have a look at it. If it's not too much work (which I don't
>> expect) it'll show up soon.
>
> That's great.  I'd be more than willing to beta test for you as well.
> Thanks a lot.

does this mean you'll have to amend the claim that pound is not a web 
server now ;-)



>
> Regards,
> Cliff
>
>
> --
> To unsubscribe send an email with subject 'unsubscribe' to pound(at)apsis.ch.
> Please contact roseg(at)apsis.ch for questions.
>
http://www.apsis.ch/pound/pound_list/archive/2006/2006-05/1147730586000/1147979027000
>




Re: [Pound Mailing List] Backends over Unix domain socket
Cliff Wells <cliff(at)develix.com>
2006-05-20 14:14:01 [ SNIP ]
On Thu, 2006-05-18 at 18:51 +0200, Robert Segall wrote:
> On Wed, 2006-05-17 at 12:21 -0700, Cliff Wells wrote:
> > On Wed, 2006-05-17 at 19:34 +0200, Robert Segall wrote:
> > 
> > > There is no serious technical limitation - a Unix domain socket supports
> > > pretty much the same operations as an IP socket. The real question is
> > > what would it be used for: which web servers do you know of that support
> > > Unix domain sockets?
> > 
> > Lighttpd for one, but mostly for web frameworks that don't have to
> > reside behind a webserver (i.e. Ruby on Rails, TurboGears, Twisted,
> > etc).  All of these (and many others) can all use domain sockets.
> > 
> > There are many companies (myself included) that specialize in hosting
> > these types of frameworks and I know for myself I'd rather use a domain
> > socket if possible.
> 
> OK, we'll have a look at it. If it's not too much work (which I don't
> expect) it'll show up soon.

Before you start, I've already done it (against pound 2.0.5), although I
need to do some more testing.  Using Lighttpd as a backend, I'm able to
serve up static pages no problem, but for some reason CGI's aren't
working (it tries to download the CGI rather than display its output).
This may be a bug in Lighttpd but I'll need to test some more to track
it down, and before that, I'll need some sleep :P

Regards,
Cliff


MailBoxer