NIAEFEUP / Website-NIAEFEUP

NIAEFEUP Website
https://ni.fe.up.pt
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

fix: avoid doing lots of reconnection attempts #239

Closed limwa closed 2 years ago

limwa commented 2 years ago

This PR limits the ammount of reconnections to the db to 1440 at 60s between reconnections. This means the server will spend, at most, one day trying to reconnect to the db.

On an 8-core machine, this will limit the number of reconnection attempts from 460.8k per day to 11.52k.