Added request id in logs using django-log-request-id module
Commented out celery flower to reduce unwanted resource usage. End user may enable it locally for debugging
Reduced thread count off backend to 2
Added autoscale comment to celery execution consumer to avoid spawning of threads unnecessarily. Without this the celery allocates 8 threads from start increasing the resource usage.
Totally I have observed around 3-4 GBs reduced after the changes in local.
Why
The request id helps to track a transaction during debugging
Memory optimizations helps to reduce load when running the items locally
How
-
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
No. This PR doesn't contain any code changes other than the additional logging change.
What
django-log-request-id
moduleWhy
How
-
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Screenshots
Related docs
Checklist
I have read and understood the [Contribution Guidelines]().