Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ jobs:
TEST_PYTEST=1
TEST_MD=1
# -------------------------------------------------------------------------
# The classic pytest suite against the motorz MPM (the other suites
# assume event), plus the restart tests: MPM= selects it for those.
- name: Python pytest_suite, motorz MPM
config: --enable-mods-shared=reallyall --with-mpm=motorz --enable-mpms-shared=all
pkgs: nghttp2-client
env: |
APR_VERSION=1.7.6
APU_VERSION=1.6.5
APU_CONFIG="--with-crypto"
NO_TEST_FRAMEWORK=1
TEST_PYTEST=1
MPM=motorz
PYTEST_ARGS=test_build.py pytest_suite/tests modules/core/test_008_restart.py
# -------------------------------------------------------------------------
- name: Default
# -------------------------------------------------------------------------
- name: All-static modules
Expand Down
1 change: 1 addition & 0 deletions build/rpm/httpd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/httpd/modules/mod_mime_magic.so
%{_libdir}/httpd/modules/mod_mime.so
%{_libdir}/httpd/modules/mod_mpm_event.so
%{_libdir}/httpd/modules/mod_mpm_motorz.so
%{_libdir}/httpd/modules/mod_mpm_prefork.so
%{_libdir}/httpd/modules/mod_mpm_worker.so
%{_libdir}/httpd/modules/mod_negotiation.so
Expand Down
3 changes: 3 additions & 0 deletions changes-entries/mpm_motorz.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*) mpm_motorz: Add the MotorZ MPM, an event-driven MPM with multi-poller
scale-out (new PollersPerChild directive), asynchronous keep-alive and
HTTP/2 handling, and graceful drain of connections. [Jim Jagielski]
1 change: 1 addition & 0 deletions docs/manual/convenience.map
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ order mod/mod_access_compat.html#order
outputsed mod/mod_sed.html#outputsed
passenv mod/mod_env.html#passenv
pidfile mod/mpm_common.html#pidfile
pollersperchild mod/motorz.html#pollersperchild
privilegesmode mod/mod_privileges.html#privilegesmode
protocol mod/core.html#protocol
protocolecho mod/mod_echo.html#protocolecho
Expand Down
1 change: 1 addition & 0 deletions docs/manual/mod/allmodules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
<modulefile>mod_xml2enc.xml</modulefile>
<modulefile>mpm_common.xml</modulefile>
<modulefile>event.xml</modulefile>
<modulefile>motorz.xml</modulefile>
<modulefile>mpm_netware.xml</modulefile>
<modulefile>mpmt_os2.xml</modulefile>
<modulefile>prefork.xml</modulefile>
Expand Down
375 changes: 375 additions & 0 deletions docs/manual/mod/motorz.xml

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs/manual/mod/motorz.xml.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- GENERATED FROM XML: DO NOT EDIT -->

<metafile reference="motorz.xml">
<basename>motorz</basename>
<path>/mod/</path>
<relpath>..</relpath>

<variants>
<variant>en</variant>
</variants>
</metafile>
41 changes: 24 additions & 17 deletions docs/manual/mod/mpm_common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ switch before dumping core</description>
<syntax>CoreDumpDirectory <var>directory</var></syntax>
<default>See usage for the default setting</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module></modulelist>

<usage>
Expand Down Expand Up @@ -97,7 +97,7 @@ after a crash</description>
<default>EnableExceptionHook Off</default>
<contextlist><context>server config</context></contextlist>
<modulelist>
<module>event</module><module>worker</module>
<module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module></modulelist>

<usage>
Expand All @@ -122,7 +122,7 @@ will exit.</description>
<default>GracefulShutdownTimeout 0</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<module>prefork</module></modulelist>
<module>prefork</module><module>motorz</module></modulelist>
<compatibility>Available in version 2.2 and later</compatibility>

<usage>
Expand All @@ -142,7 +142,7 @@ of the daemon</description>
<syntax>PidFile <var>filename</var></syntax>
<default>PidFile logs/httpd.pid</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpmt_os2</module>
</modulelist>
Expand Down Expand Up @@ -185,7 +185,7 @@ of the daemon</description>
listens to</description>
<syntax>Listen [<var>IP-address</var>:]<var>portnumber</var> [<var>protocol</var>]</syntax>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module><module>mpmt_os2</module>
</modulelist>
Expand Down Expand Up @@ -270,7 +270,7 @@ listeners' buckets</description>
<syntax>ListenCoresBucketsRatio <var>ratio</var></syntax>
<default>ListenCoresBucketsRatio 0 (disabled)</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module>
</modulelist>
<compatibility>Available in Apache HTTP Server 2.4.17, with a kernel supporting
Expand Down Expand Up @@ -343,7 +343,7 @@ in *BSDs.</compatibility>
<syntax>ListenBackLog <var>backlog</var></syntax>
<default>ListenBackLog 511</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module><module>mpmt_os2</module>
</modulelist>
Expand All @@ -369,7 +369,7 @@ in *BSDs.</compatibility>
<syntax>ListenTCPDeferAccept <var>integer</var></syntax>
<default>ListenTCPDeferAccept 30</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module>
</modulelist>
<compatibility>Available in Apache HTTP Server 2.5.1 and later</compatibility>
Expand Down Expand Up @@ -456,7 +456,7 @@ to hold without calling <code>free()</code></description>
<syntax>MaxMemFree <var>KBytes</var></syntax>
<default>MaxMemFree 2048</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module>
</modulelist>
Expand All @@ -477,7 +477,7 @@ will handle during its life</description>
<syntax>MaxConnectionsPerChild <var>number</var></syntax>
<default>MaxConnectionsPerChild 0</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module><module>mpmt_os2</module>
</modulelist>
Expand Down Expand Up @@ -595,7 +595,7 @@ the child processes</description>
<syntax>ScoreBoardFile <var>file-path</var></syntax>
<default>ScoreBoardFile logs/apache_runtime_status</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
</modulelist>

Expand Down Expand Up @@ -632,7 +632,7 @@ Apache HTTP Server</a></seealso>
<syntax>ReceiveBufferSize <var>bytes</var></syntax>
<default>ReceiveBufferSize 0</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module><module>mpmt_os2</module>
</modulelist>
Expand All @@ -653,7 +653,7 @@ Apache HTTP Server</a></seealso>
<syntax>SendBufferSize <var>bytes</var></syntax>
<default>SendBufferSize 0</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpm_winnt</module>
<module>mpm_netware</module><module>mpmt_os2</module>
</modulelist>
Expand Down Expand Up @@ -686,10 +686,17 @@ Apache HTTP Server</a></seealso>
<default>See usage for details</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<module>prefork</module>
<module>prefork</module><module>motorz</module>
</modulelist>

<usage>
<p>For the <module>motorz</module> MPM, this directive sets the number of
process slots, which must cover <directive
module="mpm_common">StartServers</directive> plus the old processes still
finishing connections after a graceful restart; it defaults to the larger
of 16 and twice
<directive module="mpm_common">StartServers</directive>.</p>

<p>For the <module>prefork</module> MPM, this directive sets the
maximum configured value for <directive
module="mpm_common">MaxRequestWorkers</directive> for the lifetime of the
Expand Down Expand Up @@ -757,7 +764,7 @@ Apache HTTP Server</a></seealso>
<syntax>StartServers <var>number</var></syntax>
<default>See usage for details</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>prefork</module><module>mpmt_os2</module>
</modulelist>

Expand Down Expand Up @@ -816,7 +823,7 @@ per child process</description>
<syntax>ThreadLimit <var>number</var></syntax>
<default>See usage for details</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>mpm_winnt</module>
</modulelist>

Expand Down Expand Up @@ -866,7 +873,7 @@ per child process</description>
<syntax>ThreadsPerChild <var>number</var></syntax>
<default>See usage for details</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>worker</module>
<modulelist><module>event</module><module>motorz</module><module>worker</module>
<module>mpm_winnt</module>
</modulelist>

Expand Down
3 changes: 2 additions & 1 deletion modules/arch/unix/config5.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ APACHE_MODPATH_INIT(arch/unix)

if ap_mpm_is_enabled "worker" \
|| ap_mpm_is_enabled "event" \
|| ap_mpm_is_enabled "prefork"; then
|| ap_mpm_is_enabled "prefork" \
|| ap_mpm_is_enabled "motorz"; then
unixd_mods_enable=yes
else
unixd_mods_enable=no
Expand Down
2 changes: 1 addition & 1 deletion server/mpm/config2.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AC_MSG_CHECKING(which MPM to use by default)
AC_ARG_WITH(mpm,
APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use by default.
MPM={event|worker|prefork|winnt}
MPM={motorz|event|worker|prefork|winnt}
This will be statically linked as the only available MPM unless
--enable-mpms-shared is also specified.
),[
Expand Down
Loading
Loading