On Thu, Feb 1, 2018 at 4:15 PM, Stefan Eissing
<stefan.eiss...@greenbytes.de> wrote:
>
>
>> Am 01.02.2018 um 16:11 schrieb Yann Ylavic <ylavic....@gmail.com>:
>>
>> On Thu, Feb 1, 2018 at 3:58 PM, ste...@eissing.org <ste...@eissing.org> 
>> wrote:
>>> Hmm...
>>>
>>>> Am 01.02.2018 um 15:42 schrieb yla...@apache.org:
>>>>
>>>> +        /*
>>>> +         * When mod_http2 is loaded we might have more processing threads
>>>> +         * since it has it's own pool of processing threads.
>>>> +         */
>>>> +        ap_mpm_query(AP_MPMQ_MAX_THREADS, &max_threads);
>>>> +        if (have_get_h2_num_workers) {
>>>> +            get_h2_num_workers(s, &minw, &maxw);
>>>> +            if (max_threads < maxw) {
>>>> +                max_threads = maxw;
>>>> +            }
>>>> +        }
>>>
>>> Is this what you want? I think the max number of threads
>>> that a proxy worker may be active in is:
>>>
>>>   (max_threads-1) + maxw
>>
>> The max number of connections a proxy worker might have to handle
>> simultaneously is the maximum number of threads requesting one at the
>> same time.
>>
>> The default for minw (ThreadsPerChild) and the doc about H2MaxWorkers
>> saying "This directive sets the maximum number of worker threads to
>> spawn per child process for HTTP/2 processing" suggested (to me) that
>> H2MaxWorkers already included ThreadsPerChild.
>> But if it should be "(max_threads-1) + maxw" per above, well, I trust you ;)
>>
>>>
>>> with a single HTTP/2 connection, running maxw streams in
>>> parallel over proxy?
>>
>> Can't each stream by proxied?
>
> Maybe I am confused, but I see the max at
>
> n-1 HTTP/1.1 connections with requests of the same proxy
> 1   HTTP/2 connection,
>     with m streams in parallel over the same proxy
>
> With current implementation, the limits are:
> n <= ThreadsPerChild
> m <= maxw

Oh, I see your point now, thanks!

But than, shouldn't it be m * n?
How about more than one HTTP/2 connection?

Reply via email to