scimma / blast

Django web app for the automatic characterization of supernova hosts
MIT License
1 stars 2 forks source link

Throttle Silk #214

Closed manning-ncsa closed 6 months ago

manning-ncsa commented 6 months ago

Description of the Change

The Silk profiler generates large volumes of database records that are unnecessary when the system is not being actively debugged. Implement a way to throttle or disable Silk when it is not needed.

manning-ncsa commented 6 months ago

Set env var SILKY_INTERCEPT_PERCENT=0 to stop logging new requests. Run the following command to clear logged data:

python manage.py silk_clear_request_log