Repository navigation
fix(init): make the PHP memory limit configurable - #14522
Conversation
Signed-off-by: Jyotirmoy Roy <[email protected]>
…mory-limit fix: make the PHP memory limit configurable via _APP_MEMORY_LIMIT
Set its introduction to the next patch, since 2.4.0 has shipped, and shorten the description.
|
Review complete. No issues found — approved ✅. This PR introduces a configurable PHP memory limit for the Appwrite server via a new optional
Reviewed commit: 15c33a7 |
🟢 Tier S · Ready to merge
The PHP bootstrap now reads its memory limit from
📂 Walkthrough · 4
Merged |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
…ry-limit fix(init): make the PHP memory limit configurable (cherry picked from commit 5f3fc62)
app/init.phphardcodedini_set('memory_limit', '512M')for every process, overridingphp -dand ini files, so a Realtime worker died at 512 MB and dropped every connection on that node.The limit now reads
_APP_MEMORY_LIMIT, still defaulting to512M. It's forwarded to every PHP service indocker-compose.yml(the threeextendsservices inherit it), defined invariables.phpnext to_APP_WORKER_PER_COREwith introduction2.5.1, and added to.env.Tested: loaded the real
app/init.phpinappwrite-dev:latestunderphp -d memory_limit=128M. With_APP_MEMORY_LIMITunset or empty the limit is512M; with2Git's2G; with-1it's-1.pint --testpasses on both PHP files.Closes #14437
Related: #14454 (merged into this branch), #13162 (same change, open since August)