orenlab / pytmbot

Flexible Telegram bot designed to manage Docker containers, monitor server status, and extend its functionality through a plugin system
https://orenlab.github.io/pytmbot/
MIT License
7 stars 2 forks source link

A large number of running containers significantly slows down the output of the container handler. #56

Closed orenlab closed 2 months ago

orenlab commented 2 months ago

Describe the bug If the number of Docker containers exceeds 3, it takes approximately 3 seconds to output the information. According to the profiler, the issue is caused by a large amount of data in the stats attribute of the __aggregate_container_details method.