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

Make status of Puma workers more readable by humans #220

Open
dvalfre opened this issue Sep 15, 2023 · 0 comments
Open

Make status of Puma workers more readable by humans #220

dvalfre opened this issue Sep 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dvalfre
Copy link
Contributor

dvalfre commented Sep 15, 2023

In order to get the status of the Puma workers, we can run /engineyard/bin/app_<app_name> status. This produces a status result and a bunch of unformatted json with details.

While that output is fine for system utilities, it's not so human friendly. Let's help ourselves by extending the control script with something like

status-pretty() {
    cd ${current_path}
    pumactl -S /var/run/engineyard/<%= @app_name %>/puma_<%= @app_name %>.state stats
}

or by passing a second argument to the script (like --pretty) and parse it as the ey-puma_legacy recipe does for port settings

Until then, the following command show a pretty print of the status of the Puma workers: /engineyard/bin/app_<app_name> status | tail -1 | json_pp.

@dvalfre dvalfre added the enhancement New feature or request label Sep 15, 2023
@dvalfre dvalfre self-assigned this Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant