Le 8 décembre 2009 01:04, Michael Shadle <mike...@gmail.com> a écrit :
> 2009/12/7 Jérôme Loyet <jer...@loyet.net>:
>
> so you're saying each worker just has a worker.name prefixed
>
> worker.name = pool1
> worker.user = nobody
> worker.group = nogroup
> worker.static.max_children = 5
> worker.dynamic.max_children = 20
> worker.dynamic.start_servers = 5
> worker.dynamic.min_spare_servers = 5
> worker.dynamic.max_spare_servers = 15
> ...etc...
>
> worker.name = pool2
> worker.user = nobody
> worker.group = nogroup
> worker.static.max_children = 5
> worker.dynamic.max_children = 20
> worker.dynamic.start_servers = 5
> worker.dynamic.min_spare_servers = 5
> worker.dynamic.max_spare_servers = 15
> ...etc...
>
> not something like
>
> worker('pool2').user = nobody
> worker('pool2').group = nogroup
>
> etc?

Yes it could be this way ... but you do repeat the pattern ('pool2')
for each entry. There is about 30 lines for each workers ... no
imagine having a multiuser environment with 30 customers ... you have
900 times a useless repeated pattern ... gnurf

>
> i guess i'm fine with it either was as long as it is easy for end
> users.
I think we all agree here :) cf my previous comment.

>also it would be nice to programatically generate it

What do you mean by programatically generate it, in which goal ?

> and be
> able to include it (would require php.ini to have include support.
> mysql does this with the !include directive, IIRC)
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to