Skip to content

Commit

Permalink
close #1369 increase the php-fpm log limit to match AWS Cloudwatch
Browse files Browse the repository at this point in the history
So that the php-fpm process will not hang when reaching log_limit (it can still reach but it's muchhh harder, and reaching it would anyway cause an error with  AWS Cloudwatch )
  • Loading branch information
allan-simon authored Jun 12, 2024
1 parent 000ca16 commit 840662d
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 840662d

Please sign in to comment.