Welcome to Centmin Mod Community
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 Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    6:08 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

    37,710
    8,254
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,710
    Local Time:
    8:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    6:08 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.
     
    • Agree Agree x 1
..