apache2modmpm_worker

March 17, 2026 ยท View on GitHub

Back to resource list

Manages the Apache mpm_worker configuration file.

Actions

ActionDescription
:createCreate the configuration.

Properties

NameTypeDefaultDescription
startserversInteger4Initial number of server processes to start.
minsparethreadsInteger64Minimum number of spare worker threads.
maxsparethreadsInteger192Maximum number of spare worker threads.
threadsperchildInteger64Constant number of worker threads per server process.
maxrequestworkersInteger1024Maximum number of threads.
maxconnectionsperchildInteger0Maximum number of requests a server process serves (0 = unlimited).
threadlimitInteger192Maximum value for ThreadsPerChild.
serverlimitInteger16Maximum value for MaxRequestWorkers / ThreadsPerChild.

Examples

apache2_mod_mpm_worker '' do
  startservers 4
  threadsperchild 25
end