-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Keep default log_limit value #1261
base: master
Are you sure you want to change the base?
Conversation
@yosifkit Do you think that the php alpine base image should stick to the defaults provided in PHP docs? |
This is definitely more complicated than just resetting this value back to the default -- see #878 (comment), which has some good details about this particular land-mine. 🙈 |
@tianon Thanks for pointing to the comment! There are multiple things being discussed:
I'm reaching out to solve "the default configuration issue" here. docker run php:8.0.16-fpm-alpine cat /usr/local/etc/php-fpm.d/docker.conf result:
Seems that specifying such Such a setting makes users of base images override this value when they want to stick to PHP default values. Does it make sense? How can I contribute more to the "the default configuration issue" topic? |
The default was changed for the image because the PHP maintainer that made the "decorate_workers" improvements in FPM said that the only reason they didn't increase the default line length was for backwards compatibility and commented that a larger value would be generally more useful (#725 (comment)). Since this has been the default in the container images for over three years, setting this to a smaller value could unexpectedly break users' logging setups that rely on the PHP logging to not arbitrarily add extra newlines (e.g. using ELK to detect a backtrace and gather the related lines). So, no I don't think this value should be changed to a smaller value. |
@yosifkit Keeping backwards compatibility makes sense. 👍🏻 Maybe it also makes sense to make this deviation from PHP defaults more visible, by explaining the "default" configuration of I'm looking forward to contributing here. Any suggestions on how we could make this more transparent for anyone? (The issue I'm trying to solve here: "the conf is not well documented & it is hacky to override |
PHP default configuration says that it should be 1024: https://www.php.net/manual/en/install.fpm.configuration.php
I think that we need to make things consistent as close as possible to defaults coming from PHP itself, as these are PHP base images.
Specifying different
log_limit
should be a project-specific thing, and it should not be specified in the base image.I see that changes were introduced in #725 (comment).