Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Handle DBI connection lost

by Mr. Muskrat (Canon)
on Feb 23, 2017 at 16:04 UTC ( #1182656=note: print w/replies, xml ) Need Help??


in reply to Handle DBI connection lost

I have a non-Perl answer but it's probably the best answer that you will receive.

Install pgbouncer and point the app at it. Before you restart the database, connect to pgbouncer and pause all connections to that database. Then you can restart the database. Once the database comes back up, unpause the connections in pgbouncer.

PostgreSQL restart with PgBouncer without losing client connections (YouTube)

Replies are listed 'Best First'.
Re^2: Handle DBI connection lost
by bash (Scribe) on Feb 27, 2017 at 12:45 UTC
    PgBouncer is good advice for server restart. Thank you.
    But it doesn't solve network issues.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1182656]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-12-17 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (464 votes). Check out past polls.

    Notices?