Re: FPM is available in a separate SVN branch
| From: | Jérôme Loyet | Date: | Tue, 08 Dec 2009 00:10:47 +0000 |
| Subject: | Re: FPM is available in a separate SVN branch | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46348@lists.php.net to get a copy of this message | ||
Le 8 décembre 2009 01:04, Michael Shadle <mike503@gmail.com> a écrit :
> 2009/12/7 Jérôme Loyet <jerome@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)
>