You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dmitry Koteroff <dm...@koteroff.ru> on 2004/07/23 22:46:06 UTC

MPM with DYNAMICAL user switching?

Hello.

Perchild  MPM  allows  to  run  different  vhost  requests  under
different user accounts. But:

1. It does not support Windows at all.
2. It  does  not  support  child processes dynamic creation. For
   example,  if  we  have  1000 vhosts under 1000 users, this MPM
   tries  to  create 1000 apache children first. Of course, it is
   very hard to do; creation on demand and killing after inactive
   timeout is more preferably.

Do  apache developers PLAN to make new MPM (or modify "perchild")
which  will  support  dynamical  child  creation  by  demand (and
killing after inactive period)? As I see, there is no significant
barriers to realize this functionality?

I am asking because I think that I can try to do it. But there is
nothing worse than doing the same work twice.

-- 
B.r,
  Dmitry Koteroff
  Chief programmer, http://host-ing.ru


Re: MPM with DYNAMICAL user switching?

Posted by Jeff Trawick <tr...@gmail.com>.
On Sat, 24 Jul 2004 00:46:06 +0400, Dmitry Koteroff <dm...@koteroff.ru> wrote:

> Do  apache developers PLAN to make new MPM (or modify "perchild")
> which  will  support  dynamical  child  creation  by  demand (and
> killing after inactive period)? As I see, there is no significant
> barriers to realize this functionality?

no such plans that I am aware of; for a long time (2.5-3 years
perhaps?) perchild has hardly been touched

there is a separate group outside of mainstream httpd development
which did some further work; see http://www.metux.de/mpm/

Re: MPM with DYNAMICAL user switching?

Posted by Enrico Weigelt <we...@metux.de>.
* Enrico Weigelt <we...@metux.de> wrote:
> * Dmitry Koteroff <dm...@koteroff.ru> wrote:
> 
> Hi,
> 
> > Perchild  MPM  allows  to  run  different  vhost  requests  under
> > different user accounts. But:
> no, it doesn't.

I have to correct myself: 

It does, but its fundamentally insecure --> nearly unusable.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------

Re: MPM with DYNAMICAL user switching?

Posted by Enrico Weigelt <we...@metux.de>.
* Dmitry Koteroff <dm...@koteroff.ru> wrote:

Hi,

> Perchild  MPM  allows  to  run  different  vhost  requests  under
> different user accounts. But:
no, it doesn't.
but metuxmpm does: 
    
    http://nibiru.borg.metux.de:7000/wiki.mpm/

<snip>
> 1. It does not support Windows at all.
windows does not support passing sockets between processes. 
so without this, you can just use a proxy sitting in front of 
multiple severs.

<snip>
> 2. It  does  not  support  child processes dynamic creation. For
>    example,  if  we  have  1000 vhosts under 1000 users, this MPM
>    tries  to  create 1000 apache children first. Of course, it is
>    very hard to do; creation on demand and killing after inactive
>    timeout is more preferably.
we're working on that.
contributions are always welcomed.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------