Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP-FPM の子プロセス制御方法と設定をおさらいしよう

PHP-FPM の子プロセス制御方法と設定をおさらいしよう

2021/10/02, 03 開催「PHP Conference Japan 2021」(https://phpcon.php.gr.jp/2021/)における LT 資料です。

Shohei Okada

October 02, 2021
Tweet

More Decks by Shohei Okada

Other Decks in Programming

Transcript

  1. ࢠϓϩηε؅ཧͷػೳΛඋ͍͑ͯΔ ʢϓϩηεʣϓʔϧͱ͍͏୯ҐͰ؅ཧ͢Δ '1.ͱ͸ 'BTU$(*l1SPDFTT.BOBHFSz ͷུ $ systemctl status php-fpm •

    php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled) Active: active (running) since 土 2021-09-25 06:53:44 UTC; 19s ago Main PID: 7794 (php-fpm) Status: "Processes active: 0, idle: 4, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/php-fpm.service ├─7794 php-fpm: master process (/etc/php-fpm.conf) ├─7795 php-fpm: pool www ├─7796 php-fpm: pool www ├─7797 php-fpm: pool www └─7798 php-fpm: pool www
  2. ઃఆϑΝΠϧྫ /etc |-- php-fpm.conf # PHP-FPM 全体の設定 |-- php-fpm.d/ :

    |-- www.conf # プールごとの設定 : : ઃఆ߲໨ QN͓Αͼ QNNBY@DIJMESFOʹ͍ͭͯઆ໌