php / php/php-src

php-fpm ping or status is to many CPU usage

Offen
#12,600 6 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@bukka arbeitet bereits daran.

Seit 03.11.2023.

Feature SAPI: fpm
Vorherrschende Sprache
C
Sterne
40.4k
Forks
8.1k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
96

Beschreibung

Description

Hello, community. I am using php-fpm 8.2 in the docker container and running on the Kubernetes cluster.
And after some time of observations, I see very strange behavior of my horizontal pod autoscaler. All the time, application is scaled to maximal pod count although there is no load or traffic at all. After investigating fpm logs I see that the status endpoint sometimes uses too match CPU.

- - 03/Nov/2023:06:52:50 +0000 "GET /status" 200 - 0.148 2048 6756.76%
- - 03/Nov/2023:06:52:49 +0000 "GET /status" 200 - 0.323 2048 6191.95%
- - 03/Nov/2023:06:52:45 +0000 "GET /status" 200 - 0.161 2048 6211.18%
- - 03/Nov/2023:06:52:45 +0000 "GET /status" 200 - 0.061 2048 16393.44%
- - 03/Nov/2023:06:52:34 +0000 "GET /status" 200 - 0.325 2048 3076.92%
- - 03/Nov/2023:06:52:18 +0000 "GET /status" 200 - 0.201 2048 4975.12%
- - 03/Nov/2023:06:52:16 +0000 "GET /status" 200 - 4.299 2048 232.61%
- - 03/Nov/2023:06:52:07 +0000 "GET /status" 200 - 0.116 2048 8620.69%
- - 03/Nov/2023:06:51:57 +0000 "GET /status" 200 - 0.178 2048 5617.98%
- - 03/Nov/2023:06:51:50 +0000 "GET /status" 200 - 0.242 2048 4132.23%
- - 03/Nov/2023:06:51:37 +0000 "GET /status" 200 - 0.170 2048 5882.35%
- - 03/Nov/2023:06:51:30 +0000 "GET /status" 200 - 0.277 2048 3610.11%
- - 03/Nov/2023:06:51:29 +0000 "GET /status" 200 - 0.156 2048 6410.26%
- - 03/Nov/2023:06:51:25 +0000 "GET /status" 200 - 0.131 2048 7633.59%
- - 03/Nov/2023:06:51:01 +0000 "GET /status" 200 - 0.154 2048 6493.51%
- - 03/Nov/2023:06:51:00 +0000 "GET /status" 200 - 0.223 2048 4484.30%
- - 03/Nov/2023:06:50:55 +0000 "GET /status" 200 - 0.216 2048 4629.63%
- - 03/Nov/2023:06:50:53 +0000 "GET /status" 200 - 0.192 2048 5208.33%
- - 03/Nov/2023:06:50:39 +0000 "GET /status" 200 - 0.258 2048 3875.97%
- - 03/Nov/2023:06:50:33 +0000 "GET /status" 200 - 0.138 2048 7246.38%
- - 03/Nov/2023:06:50:27 +0000 "GET /status" 200 - 0.161 2048 6211.18%
- - 03/Nov/2023:06:50:18 +0000 "GET /status" 200 - 0.179 2048 11173.18%

And this is the reason why autoscaler detects an unusual load all the time.
I also saw mentions of this problem in the comments to the bug: https://bugs.php.net/bug.php?id=80428
Please fix this strange phantom error.

Best regards

PHP Version

8.2

Operating System

alpine 3.12

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.