alyf-de / banking

An Open Banking Integration with ERPNext
GNU General Public License v3.0
37 stars 18 forks source link

Load balancing #82

Open barredterra opened 8 months ago

barredterra commented 8 months ago

https://github.com/alyf-de/banking/blob/5cdcfeba9831fd3bfcd4d6b247d53ff12349c138/banking/hooks.py#L117-L121

With enough clients in the same timezone, this basically launches a DDOS attack on our backend server every day.

Spikes at midnight, for the past 7 days:

Bildschirmfoto 2023-11-12 um 19 12 21

We should try to find a way of making this run, say, at a random time between 22pm and 6am.