[PATCH] docker: add Docker files for running an Apache mod_wsgi server

Augie Fackler raf at durin42.com
Thu Nov 13 08:18:43 CST 2014


On Thu, Nov 13, 2014 at 9:17 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
>>>> This patch introduces a Docker environment for running Mercurial
>>>> under Apache + mod_wsgi. With just a few command executions, it is
>>>> possible to spin up a Docker container running hgweb.
>>>
>>> apache+mod_wsgi+multiple workers ... why not just run hg serve? What is
>>> it
>>> you want to test?
>>
>> I'm assuming he wants to test under a realistic multi-threaded
>> environment, rather than the phoney no-concurrency variant that hg
>> serve gives you.
>
>
> hg serve might be phoney, but AFAIK&CS it is multi-threaded. In what wat is
> it not? I would expect that it would be perfect for reproducing concurrency
> issues.

I should have been more precise: modwsgi+many workers provides real
_concurrency_ in a way that hg serve cannot - yes, we use threads, but
the GIL means that it's somewhat rare that multiple requests can do
anything useful.

>
> I see the point in having realistic test too, but a realistic should be as
> close to the production environment as possible - that would be something
> different in each setup, not something we can carry upstream.


More information about the Mercurial-devel mailing list