Skip to content
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

add bin/get_fpm_status #27

Merged
merged 1 commit into from
May 29, 2024
Merged

add bin/get_fpm_status #27

merged 1 commit into from
May 29, 2024

Conversation

vdloo
Copy link
Member

@vdloo vdloo commented May 29, 2024

looks like:

hypernode-api-python]$ ./bin/get_fpm_status --help
usage: get_fpm_status [-h]

Show the status of the PHP-FPM workers.

Example:
$ ./bin/get_fpm_status
{
  "message": null,
  "data": "50570 IDLE   0.0s -  phpfpm    127.0.0.1       GET  magweb/status.php   (python-requests/2.28.1)
50571 IDLE   0.0s -  phpfpm    127.0.0.1       GET  magweb/status.php   (python-requests/2.28.1)
",
  "status": 200
}

and for nicer output use jq:

hypernode-api-python]$ ./bin/get_fpm_status | jq -r .data
181216 GONE   6.9s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
178128 BUSY   4.1s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
181219 BUSY   3.3s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
181456 BUSY   3.0s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
181457 BUSY   2.1s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
181458 BUSY   1.1s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)
181461 BUSY   0.1s NL phpfpm    1.2.3.4 GET  hntestakeneosev.hypernode.io/   (curl/7.86.0)

looks like:
```
hypernode-api-python]$ ./bin/get_fpm_status --help
usage: get_fpm_status [-h]

Show the status of the PHP-FPM workers.

Example:
$ ./bin/get_fpm_status
{
  "message": null,
  "data": "50570 IDLE   0.0s -  phpfpm    127.0.0.1       GET  magweb/status.php   (python-requests/2.28.1)
50571 IDLE   0.0s -  phpfpm    127.0.0.1       GET  magweb/status.php   (python-requests/2.28.1)
",
  "status": 200
}
```
@vdloo vdloo merged commit 29c946e into master May 29, 2024
5 checks passed
@vdloo vdloo deleted the add-fpm-status branch May 29, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants