-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frankenphp_worker_php_ready_worker is skewing to negative values with worker restarts #1163
Comments
Yeah it looks like ReadyWorker is only called once, while StopWorker is called every time a worker restarts, skewing the metric. |
This is possibly a merge-conflict resolution error on my part, but at a glance, it appears to be working as designed. It is stopping workers, then it calls I think something is missing here.
I don't know how I would feel about a God System reaching into things just to extract metrics. |
Aha!
This should be a static number once started. It doesn't (usually) increase. It is indicative of a successful startup, not part of request handling itself. |
ah, yeah. The metric changed meaning during the merge conflict. I'll fix it. |
What happened?
Hi.
We have excitingly been trying out the new 1.3.0 release. We immediately setup an alert on the
frankenphp_worker_php_ready_worker
metric on our environments.We however observed that this metric has a decreasing pattern to it, that is not equal to the relationship of
total_workers - busy_workers
.Look at this plot of the metric of a somewhat busy container (20RPS ish) (each line is a seperate container)
I was very worried of this metric, however it has now become a negative value, indicating that is keep decreasing even below 0. In our case we may see the ready_worker metric report -2, while the busy worker metric is 4 and total workers is 60. So in this case I assume the correct value is 56? Or close to 56.
It looks to be somewhat correlated to worker restarts, looking at this graph:
The service is responding as normal even with negative ready workers
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response
The text was updated successfully, but these errors were encountered: