php-fpmã¯graceful restartãã¾ããï¼åé¿çããï¼
php-fpmã¯graceful restart. ããæã£ã¦ããé ãç§ã«ãããã¾ãã
以ä¸ã®å ¬å¼ããã¥ã¡ã³ãã«ãç·©ãã㪠(graceful) åæ¢/èµ·å æ©è½ãå«ãé«åº¦ãªããã»ã¹ç®¡çãã¨è¨è¼ãããã®ã§ã ä½ã®çãããªãservice php-fpm reloadãå©ãããããã»ã¹ãè½ã¡ã¾ãããã
PHP: FastCGI Process Manager (FPM) - Manual
reloadãrestartãçµäºå¦çã¯åã
ãã¡ããããã¯reloadã ããã¨ããããã§ã¯ããã¾ããã reloadãrestartããå®è¡ããkillã³ãã³ãã«USR2ãªãã·ã§ã³ã¯ä»ãã¦ãã¾ãã
ä»ãã¦ããã®ã§ããããããæå¾ ããåä½ï¼ããã»ã¹ã®å¦çãçµäºãããkillï¼ã«ãªãã¾ããã
ã°ã°ãã¨ããåºã¦ããã®ã§ãã
以ä¸ã®ãã°ã¨ãã¦ä¸ãã£ã¦ãã¾ããããã£ã¨æ¾ç½®ããã¦ããããã§ãã
PHP :: Bug #60961 :: Graceful Restart (USR2) isn't very graceful
対ç
php-fpmã®process_control_timeoutããããã©ã«ãã®0ããã³ãã¯ã·ã§ã³ã¿ã¤ã ã¢ã¦ãã®è¨å®å¤ã¨åç¨åº¦ã®å¤ã«å¤ããã¨ã ããã»ã¹ã®çµäºãå¾ ã£ã¦åèµ·åããããã«ãªãã¾ããï¼reloadãåæ§ï¼
ãããããããããã¨ã§ã親ããã»ã¹ãåããã»ã¹ã®ç¶æ ãç¥ããã¨ãã§ããããã«ãªãããã ã¨ã¯æãã¾ããã»ã»ã»æ¨æ¸¬ã§ãã æ§è½å½±é¿ãå³ãã¦ããªãã®ã§ããããæ£ãã対çãªã®ãã¯ãªãã¨ãè¨ãã¾ããã ãã ããããã¨gracefulã«ã¯ãªã£ãã®ã§ã課éã®ãããªéä¸ã§æ®ºãã¨ã¾ããAPIãªã©ã¯ãè¨å®ããã¨å¹¸ãã«ãªããããããã¾ããã
å¾ã¯ãä¸ã®PHPãã¹ã¿ã¼ã«æå¾ ããã ãã®äººçãéããã¨æãã¾ãã