[BUG] Very slow starts with many services configured
What happened?
We need to configure 1400 services (for now we started with 700).
But when doing so, starts taking VERY long time : it tooks around 4 hours, making BunkerWeb unusable!
Bunkerweb is running on a dedicated 4 cores 24 Go host, with SSD (I/O is not the issue here, it's more CPU related with 100% CPU usage by main.py on 1 core).
Note: following documentation, USE_MODSECURITY_GLOBAL_CRS have been sets to YES.
How to reproduce?
Try to configure 700 URLs (we made it using env variables, and very basic settings : URL, LETSE off, CUSTOM wildcard cert).
Configuration file(s) (yaml or .env)
Relevant log output
BunkerWeb version
1.6.1
What integration are you using?
Docker
Linux distribution (if applicable)
No response
Removed private data
- [x] I have removed all private data from the configuration file and the logs
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Hi @clementmoulin, thank you for reporting this issue, we'll have a look at what we can do and we'll let you know! 😄
Hi @clementmoulin, we've significantly improved the template generation process, and these enhancements will be included in the upcoming release candidate. You should notice a marked improvement—looking forward to hearing what you think!