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

Test new php-fpm parameters to avoid warning #31

Open
a3linux opened this issue Jul 10, 2023 · 3 comments
Open

Test new php-fpm parameters to avoid warning #31

a3linux opened this issue Jul 10, 2023 · 3 comments

Comments

@a3linux
Copy link
Owner

a3linux commented Jul 10, 2023

10-Jul-2023 22:29:46] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 2 idle, and 30 total children

Warning message from php-rpm

try to increase the pm settings,

The current settings of conf/nextcloud-app/www.conf

pm = dynamic
pm.max_children = 64
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 16

Recommendation,

pm = dynamic
pm.max_children = 80
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 64

For 4GB memory of nextcloudapp container.

@a3linux
Copy link
Owner Author

a3linux commented Jul 13, 2023

Please also be aware of postgres max_connection when increasing the max_children in Nextcloud.

Nextcloud has another config item dbpersistent => 'true' can be tuning the Database connections.

@a3linux
Copy link
Owner Author

a3linux commented Jul 13, 2023

postgres official docker image supports CMD -c max_connections=200 to increase the max_connections
in docker compose file,

...
command: -c max_connections=200
...

The default max_connections=100.

docker exec -it homecloud_postgres psql -U postgres -c "show max_connections;"
to check.

Tune this with above Nextcloud configurations.

@a3linux
Copy link
Owner Author

a3linux commented Jul 13, 2023

How to test tuning?

Try to load folder with huge files in Nextcloud and observe the performance.

Try to move or delete huge files and folders from Nextcloud, observe the performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant