E. How many users were connected when the problem occurred?
About 350 connections
Thanks
______________________________________________________________________________________
Probably that is your problem, if you don’t have connection pooler.
I’d recommend to start with PgBouncer, very light-weight and easy to configure.
Regards,
Igor Neyman