Skip to content

Commit

Permalink
Add a query for the destination-tool-queue-run-time
Browse files Browse the repository at this point in the history
A query to calculat queue and run time statistics grouped by destination_id and tool_id. Aim is to use this in conjunction with TPV.
  • Loading branch information
pauldg committed Apr 15, 2024
1 parent 0d93537 commit dd18a17
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 227 deletions.
39 changes: 39 additions & 0 deletions docs/README.gunicorn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# gunicorn

Command | Description
------- | -----------
[`gunicorn active-users`](#gunicorn-active-users) | Shows active users in last 10 minutes
[`gunicorn lastlog`](#gunicorn-lastlog) | Fetch the number of seconds since the last log message was written

## gunicorn active-users

([*source*](https://github.com/galaxyproject/gxadmin/search?q=gunicorn_active-users&type=Code))
gunicorn active-users - Shows active users in last 10 minutes

**SYNOPSIS**

gxadmin gunicorn active-users

**NOTES**

See unique sorts IP adresses from 'GET /history/current_history_json' from last 10 minutes and prints it in influx line format


## gunicorn lastlog

([*source*](https://github.com/galaxyproject/gxadmin/search?q=gunicorn_lastlog&type=Code))
gunicorn lastlog - Fetch the number of seconds since the last log message was written

**SYNOPSIS**

gxadmin gunicorn lastlog

**NOTES**

Lets you know if any of your workers or handlers have maybe stopped processing jobs.

$ gxadmin gunicorn lastlog
journalctl.lastlog,service=galaxy-gunicorn@0 seconds=0
journalctl.lastlog,service=galaxy-gunicorn@1 seconds=0
journalctl.lastlog,service=galaxy-gunicorn@2 seconds=2866

Loading

0 comments on commit dd18a17

Please sign in to comment.