diff options
author | Chris Meyers <chris.meyers.fsu@gmail.com> | 2021-08-25 15:04:51 +0200 |
---|---|---|
committer | Chris Meyers <chris.meyers.fsu@gmail.com> | 2021-08-25 15:09:19 +0200 |
commit | 8e043b139aa2f3621ab62512f4e78b85bd2db4b6 (patch) | |
tree | f97e9d35b480fd5fa9037984918cdbe2fc4db841 /docs/debugging/debugging_misc.md | |
parent | Merge pull request #10727 from ansible/mesh_code (diff) | |
download | awx-8e043b139aa2f3621ab62512f4e78b85bd2db4b6.tar.xz awx-8e043b139aa2f3621ab62512f4e78b85bd2db4b6.zip |
add docs for debugging slow api endpoint
Diffstat (limited to 'docs/debugging/debugging_misc.md')
-rw-r--r-- | docs/debugging/debugging_misc.md | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/docs/debugging/debugging_misc.md b/docs/debugging/debugging_misc.md index 307fa4fee1..287bff2f6e 100644 --- a/docs/debugging/debugging_misc.md +++ b/docs/debugging/debugging_misc.md @@ -1,21 +1,6 @@ Debugging ========= -Django Debug Toolbar (DDT) ----------------- -This is a useful tool for examining SQL queries, performance, headers, requests, signals, cache, logging, and more. - -To enable DDT, you need to set your `INTERNAL_IPS` to the IP address of your load balancer. This can be overridden by creating a new settings file beginning with `local_` in `awx/settings/` (e.g. `local_overrides.py`). -This IP address can be found by making a GET to any page on the browsable API and looking for a like this in the standard output: -``` -awx_1 | 14:42:08 uwsgi.1 | 172.18.0.1 GET /api/v2/tokens/ - HTTP/1.1 200 -``` - -Allow this IP address by adding it to the `INTERNAL_IPS` variable in your new override local settings file, then navigate to the API and you should see DDT on the -right side. If you don't see it, make sure to set `DEBUG=True`. -> Note that enabling DDT is detrimental to the performance of AWX and adds overhead to every API request. It is -recommended to keep this turned off when you are not using it. - SQL Debugging ------------- AWX includes a powerful tool for tracking slow queries across all of its Python processes. |