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
{{ message }}
Repository navigation
Variables or at least better defaults for PHP pm.* settings #1982
I think this issue is not actually a real duplicate IMHO. Could not you e.g.:
configure these settings to at least somewhat higher number?
at the first start of the container automatically calculate a value that is considered to be "good" (e.g. based on the ram or whatever) likely in a shell script
or, maybe in addition, include, if possible, a check for a good value in the Nextcloud "health/system check" admin page (would be am issue for the Nextcloud php project itself of course, however)?
There is some attempt in #1766 and #1964. We can't make any assumption about the host system. This may range from a tiny SOC board to a large root server and from single purpose hosts to one that shares it's resources with many other services. There is no "good" default or at least I'm not aware of a "good" way to calculate it.
@J0WI I would assume that a docker host has at least 4 GB RAM and is dedicated for the Nextcloud stack. If this parameters can be changed for larger or smaller hosts by environment variables like the PHP memory and upload limit https://github.com/nextcloud/docker/blob/master/26/fpm-alpine/Dockerfile#L81 this should be a good solution.
Otherwise you force the users to build an own image extending Nextcloud or mount a config into the container.
Activity
J0WI commentedon May 25, 2023
Duplicate of #1969
rugk commentedon May 25, 2023
I think this issue is not actually a real duplicate IMHO. Could not you e.g.:
J0WI commentedon May 25, 2023
There is some attempt in #1766 and #1964. We can't make any assumption about the host system. This may range from a tiny SOC board to a large root server and from single purpose hosts to one that shares it's resources with many other services. There is no "good" default or at least I'm not aware of a "good" way to calculate it.
t3easy commentedon May 26, 2023
@J0WI I would assume that a docker host has at least 4 GB RAM and is dedicated for the Nextcloud stack. If this parameters can be changed for larger or smaller hosts by environment variables like the PHP memory and upload limit https://github.com/nextcloud/docker/blob/master/26/fpm-alpine/Dockerfile#L81 this should be a good solution.
Otherwise you force the users to build an own image extending Nextcloud or mount a config into the container.
t3easy commentedon Jun 28, 2023
This is what I did:
The defaults are those from
/usr/local/etc/php-fpm.d/www.confso there is no change for existing installations. I cloud provide a PR if you like.skl256 commentedon Oct 19, 2023
@t3easy Thank you very mush! My problem (freeze when rewinding video) solved!