Req #55526 [Com]: Heartbeat rate too high causes a lot of events
| From: | fat@php.net | Date: | Mon, 29 Aug 2011 08:22:25 +0000 |
| Subject: | Req #55526 [Com]: Heartbeat rate too high causes a lot of events | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163056@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55526&edit=1
ID: 55526
Comment by: fat@php.net
Reported by: adrien at antipoul dot fr
Summary: Heartbeat rate too high causes a lot of events
Status: Assigned
Type: Feature/Change Request
Package: FPM related
Operating System: Linux
PHP Version: 5.3.8
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
The FPM heartbeat is used to check timeouts on its children which includes:
- request_terminate_timeout
- request_slowlog_timeout
If you don't use those features, the heartbeat is useless as it does nothing.
If you use those features, you can higher the heartbeat frequency accordingly.
If you need to change it quickly, you can edit the source file fpm_process_ctl.h
and change
/* 130ms heartbeat for pctl */
#define FPM_PCTL_HEARTBEAT (130)
to what you want.
Previous Comments:
------------------------------------------------------------------------
[2011-08-28 16:59:07] adrien at antipoul dot fr
Description:
------------
Hi,
It seems that FPM has a heartbeat each 130ms. This is really short, and make php-fpm the #1 event
generator on my personal server, that also runs Apache, NGinx, dovecot, powerdns, NSD3 and unicorn.
There might be a good reason for such a heartbeat, but there also might be a way to at least
increase it to 5 or 10 seconds.
I'll be glad to help and get rid of this, as soon as I understand what this heartbeat is
helpful for.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55526&edit=1