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): 
   
![image](https://github.com/apache/airflow/assets/15932138/9c64de82-c292-4133-be39-ee58641f6915)
   
   
   After (370MB):
   
![image](https://github.com/apache/airflow/assets/15932138/cbc2e53f-35a5-4219-8874-0125b29b86d9)
   


-- 
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]

Reply via email to