Documentation
¶
Overview ¶
Package fpmtune sizes PHP-FPM pools against available memory.
The problem it solves is allocation, not calculation: a machine hosting many sites has many pools drawing on one budget, and the useful question is not "how many workers should a pool have" but "how should this budget be divided between pools that want different amounts".
The packages split along a deliberate line. allocate is pure computation with no I/O and no dependencies — given a budget, an inventory and a set of baselines it returns a plan, which makes it exhaustively testable and cheap for other projects to embed. Everything that touches the world (observe, apply, state, budget) sits outside it.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package allocate divides a memory budget between competing PHP-FPM pools.
|
Package allocate divides a memory budget between competing PHP-FPM pools. |
|
Package apply writes a plan to disk and asks PHP-FPM to adopt it.
|
Package apply writes a plan to disk and asks PHP-FPM to adopt it. |
|
Package budget works out how much memory is actually available.
|
Package budget works out how much memory is actually available. |
|
cmd
|
|
|
fpm-tune
command
Command fpm-tune sizes PHP-FPM pools against the memory a host actually has.
|
Command fpm-tune sizes PHP-FPM pools against the memory a host actually has. |
|
Package lock serialises the processes that may write PHP-FPM configuration.
|
Package lock serialises the processes that may write PHP-FPM configuration. |
|
Package metrics publishes what fpm-tune knows.
|
Package metrics publishes what fpm-tune knows. |
|
Package observe turns a live PHP-FPM installation into the inputs the allocator needs.
|
Package observe turns a live PHP-FPM installation into the inputs the allocator needs. |
|
Package plan turns observations and remembered baselines into an allocation.
|
Package plan turns observations and remembered baselines into an allocation. |
|
Package serve runs the closed loop: observe, learn, allocate, apply.
|
Package serve runs the closed loop: observe, learn, allocate, apply. |
|
Package state remembers what each pool's workers actually cost.
|
Package state remembers what each pool's workers actually cost. |
|
testing
|
|
|
loadgen
command
Command loadgen puts sustained, controlled concurrency on a PHP-FPM pool.
|
Command loadgen puts sustained, controlled concurrency on a PHP-FPM pool. |
|
Package top is the terminal view of a running fpm-tune daemon.
|
Package top is the terminal view of a running fpm-tune daemon. |
Click to show internal directories.
Click to hide internal directories.