Splitting up the pool configs a little for more control
Adding experimental improvements to database failure handling. The system will count how many times the recorder failed to connect and after a configurable failure count the system will pause itself for five seconds (configurable), allowing the actions to pile up in the queue. After the elapsed time we close and re-open the pool connections assuming the db connection had been lost.
Reducing purge batches to 5k for better db performance, avoiding default row lock errors if table is innodb