dstandish opened a new pull request, #40658: URL: https://github.com/apache/airflow/pull/40658
By default, a botocore session creates and caches an instance of JSONDecoder which consumes a lot of memory. This issue was reported here https://github.com/boto/botocore/issues/3078. In the context of triggers which use boto sessions, this can result in excessive memory usage and as a result reduced capacity on the triggerer. We can reduce memory footprint by sharing the loader instance across the sessions. Below here is memory utilization shown before and after the fix, with 50 s3 key triggers running: Before (770MB):  After (370MB):  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
