You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/performance.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ However, it is possible to substantially improve performance using an appropriat
7
7
8
8
By default, FrankenPHP starts 2 times more threads and workers (in worker mode) than the available numbers of CPU.
9
9
10
-
The appropriate values depend heavily on how your application is written, what it does and your hardware.
10
+
The appropriate values depend heavily on how your application is written, what it does, and your hardware.
11
11
We strongly recommend changing these values. For best system stability, it is recommended to have `num_threads` x `memory_limit` < `available_memory`.
12
12
13
13
To find the right values, it's best to run load tests simulating real traffic.
@@ -43,7 +43,7 @@ Also, [some bugs only happen when using musl](https://github.com/php/php-src/iss
43
43
44
44
In production environments, we recommend using FrankenPHP linked against glibc, compiled with an appropriate optimization level.
45
45
46
-
This can be achieved by using the Debian Docker images, using our maintainers [.deb](https://debs.henderkes.com) or [.rpm](https://rpms.henderkes.com) packages, or by [compiling FrankenPHP from sources](compile.md).
46
+
This can be achieved by using the Debian Docker images, using [our maintainers .deb, .rpm, or .apk packages](https://pkgs.henderkes.com), or by [compiling FrankenPHP from sources](compile.md).
47
47
48
48
## Go Runtime Configuration
49
49
@@ -146,7 +146,7 @@ All usual PHP-related performance optimizations apply with FrankenPHP.
146
146
147
147
In particular:
148
148
149
-
- check that [OPcache](https://www.php.net/manual/en/book.opcache.php) is installed, enabled and properly configured
149
+
- check that [OPcache](https://www.php.net/manual/en/book.opcache.php) is installed, enabled, and properly configured
${SUDO} sh -c 'curl -fsSL https://pkg.henderkes.com/api/packages/85/debian/repository.key -o /etc/apt/keyrings/static-php85.asc'
60
+
${SUDO} sh -c 'echo "deb [signed-by=/etc/apt/keyrings/static-php85.asc] https://pkg.henderkes.com/api/packages/85/debian php-zts main" | sudo tee -a /etc/apt/sources.list.d/static-php85.list'
61
61
ifcommand -v apt >/dev/null 2>&1;then
62
62
${SUDO} apt update
63
63
${SUDO} apt -y install frankenphp
@@ -73,6 +73,35 @@ Linux*)
73
73
echo"⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
74
74
exit 0
75
75
fi
76
+
77
+
ifcommand -v apk >/dev/null 2>&1;then
78
+
echo"📦 Detected apk. Installing FrankenPHP from APK repository..."
79
+
if [ -n"${SUDO}" ];then
80
+
echo"❗ Enter your password to grant sudo powers for package installation"
0 commit comments