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

close #1369 increase the php-fpm log limit to match AWS Cloudwatch #1824

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions runtime/common/fpm/php-fpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ pid = /tmp/.bref/php-fpm.pid
;log_level = 'warning'

; New PHP 7.3 option that includes the maximum length when writing to stderr
log_limit = 8192
: See https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
; and https://github.com/php/php-src/issues/9010#issuecomment-1184574379
; We set it to the limit of a AWS Cloudwatch log otherwise, reaching this limit would hang the php-fpm process.
log_limit = 1048575

[default]
pm = static
Expand All @@ -24,4 +27,4 @@ decorate_workers_output = no
; See https://github.com/brefphp/bref/issues/275
rlimit_core = 1

user = nobody
user = nobody
Loading