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

Customize php-fpm configuration in stable-fpm #1080

Closed
khartahk opened this issue Apr 16, 2020 · 6 comments
Closed

Customize php-fpm configuration in stable-fpm #1080

khartahk opened this issue Apr 16, 2020 · 6 comments
Labels

Comments

@khartahk
Copy link

khartahk commented Apr 16, 2020

I'm trying to increase pm.max_children in stable-fpm but it's not working.
I've tried adding /usr/local/php-fpm.d/www2.conf with

[www]
pm.max_children = 100

But it doesn't appear to be working. Should this be done this way and I just don't know how to check for the effects or is there some other proper route?

I really don't want to copy the www.conf to my host config folder and override it by mounting the file in the same place as I don't want to risk breakage in the future.

What would be the proper way to do this?

@J0WI
Copy link
Contributor

J0WI commented Apr 18, 2020

Please try again with /usr/local/etc/php-fpm.d/www2.conf.

@J0WI J0WI added the question label Apr 18, 2020
@khartahk
Copy link
Author

How can I verify it's working or where can I check out running php-fpm configuration?

@doc75
Copy link
Contributor

doc75 commented May 3, 2020

@khartahk on my side the default was reached when trying to upload multiples files or a big files through the Web interface (Drag & Drop). If you reach the limit, then you should see something like that in the logs of the nextcloud container:

app_1    | [<Date removed>] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 6 total children

Above you can see that it spawn 8 children which is above the default value of ( (if I remember well).

@J0WI
Copy link
Contributor

J0WI commented May 3, 2020

How can I verify it's working or where can I check out running php-fpm configuration?

E.g. with https://www.php.net/manual/en/install.fpm.configuration.php#pm.status-path

@yuri-1987
Copy link

@khartahk the solution of mounting additional file works, you can verify with running this command from the container:
php-fpm -tt

@J0WI
Copy link
Contributor

J0WI commented Jun 5, 2020

I guess the question has been answered. We just consume the base image from https://github.com/docker-library/php, so this is not specific to the Nextcloud image.

@J0WI J0WI closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants