Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up equation. #1263

Merged
merged 1 commit into from
Nov 6, 2019
Merged
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
Binary file added src/images/equations/phpfpmworkers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions src/languages/php/fpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ The heuristic is based on three input parameters:

The number of workers is calculated as:

```
/ ContainerMemory - ReservedMemory \
workers = max|---------------------------------, 2|
\ RequestMemory /
```
![PHP FPM Worker Heuristic](/images/equations/phpfpmworkers.png)

## Defaults

Expand Down Expand Up @@ -61,7 +57,7 @@ tail -n5000 /var/log/php.access.log | awk '{print $6}' | sort -n | uniq -c
This will print out a table of how many requests used how much memory, in KB, for the last 5000 requests that reached PHP-FPM. (On an especially busy site you may need to increase that number). As an example, consider the following output:

```
1
1
4800 2048
948 4096
785 6144
Expand Down