Join the community today
Register Now

Suggestion for PHP-FPM, Slow Log should be enable by default?

Discussion in 'Feature Requests & Suggestions' started by rdan, Dec 12, 2018.

  1. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    6:34 PM
    Mainline
    10.2
    And if possible will be stored on domain/log/ folder.

    Code:
    request_slowlog_timeout = 10s
    slowlog = /home/nginx/domain/$vhost/log/php-fpm_slow.log


     
  2. eva2000

    eva2000 Administrator Staff Member

    58,917
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:34 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Thought about it but for very poor web app scripts with slow PHP-FPM requests, that log may blow out in size quite quickly though.

    As to per vhost slow log, the $vhost variable is invalid config and you can't do per vhost slowlog when there is only a single PHP-FPM worker pool which is configured at /usr/local/etc/php-fpm.conf
     
  3. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    6:34 PM
    Mainline
    10.2
    Yes I think and expected this :D.
    I just hope it's possible by single Pool.

    On slow VPS also.
    Okay I'll enable it manually in all my server.