mother-of-all-self-hosting / mash-playbook

🐋 Ansible playbook which helps you host various FOSS services as Docker containers on your own server
GNU Affero General Public License v3.0
466 stars 60 forks source link

[Nextcloud] OPCache Buffer is almost full #243

Open javiloncho opened 2 months ago

javiloncho commented 2 months ago

In nextcloud show me this message,

PHP OPcache module is not configured correctly The OPcache buffer is almost full. To make sure that all scripts can be retained in cache, it is recommended to add "opcache.memory_consumption" to your PHP configuration with a value higher than "128"... For more details check the documentation.

I think that we need to raise de value of the variable opcache.memory_consumption from 128 to 256 in /usr/local/etc/php/conf.d/opcache-recommended.ini but container is read-only.

spantaleev commented 2 months ago

I do not see this on my setup, but I'm probably running much fewer additional Nextcloud apps than you are, which means fewer PHP files in my setup.

It's probably best if this is fixed upstream, here.

Alternatively, we can mount additional PHP config overrides (into /usr/local/etc/php/conf.d/zz-custom.ini for example) via the Ansible role. This could also allow us to override other default configuration for which the Nextcloud Docker container image does not provide tweaking knobs (in the form of environment variables like these).

If you'd like to work on a PR for any of these proposed solutions, please go ahead!