1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00
awx/installer/roles/image_build/files
Ryan Petrello eed94b641e
add a custom DB backend that provides system-level SQL profiling
run this command on _any_ node in an awx cluster:

$ awx-manage profile_sql --threshold=2.0 --minutes=1

...and for 1 minute, the timing for _every_ SQL query in _every_ awx
Python process that uses the Django ORM will be measured

queries that run longer than (in this example) 2 seconds will be
written to a per-process sqlite database in /var/lib/awx/profile, and
the file will contain an EXPLAIN VERBOSE for the query and the full
Python stack that led to that SQL query's execution (this includes not
just WSGI requests, but background processes like the runworker and
dispatcher)

$ awx-manage profile_sql --threshold=0

...can be used to disable profiling again (if you don't want to wait for
the minute to expire)
2019-02-14 15:04:46 -05:00
..
ansible.repo Move installer roles into roles directory 2018-03-22 14:34:03 -04:00
Dockerfile.sdist Python 3 / Upstream Kubernetes 2019-01-15 14:09:05 -05:00
launch_awx_task.sh Fix broken conditional 2018-08-14 11:19:15 -04:00
launch_awx.sh Fix fallout from https://github.com/ansible/awx/pull/2392 2018-10-10 11:41:34 -04:00
RPM-GPG-KEY-ansible-release Move installer roles into roles directory 2018-03-22 14:34:03 -04:00
settings.py add a custom DB backend that provides system-level SQL profiling 2019-02-14 15:04:46 -05:00
supervisor_task.conf replace celery task decorators with a kombu-based publisher 2018-10-11 10:53:30 -04:00
supervisor.conf Move installer roles into roles directory 2018-03-22 14:34:03 -04:00