0

We have recently setup streaming replication in our Postgres server (t01, t02). t01 is master and t02 is the slave. I want to understand the below two issues:

Recently our /var directory of t01 server got full and app team was not able to access the application. My understanding was if t01 /var was full, the connection should be made to t02 and application should start using that as t02 /var was not full.

If we shutdown t01 server, will my application automatically use the t02 databases, Streaming replication will provide HA in this case or not?

asked Nov 28, 2018 at 17:30
1
  • You should consider a Load balancer Commented Nov 28, 2018 at 18:12

1 Answer 1

0

This is not an inherent feature of PostgreSQL. Whether your application will connect to the replica (or even knows that a replica exists in the first place) is up to your application, framework, library, connection pooler, or networking. And their respective configurations.

If it does connect to the replica, that connection will be read only, unless you do something to promote the replica. Autopromotion is not an inherent feature of PostgreSQL, you would have had to install and configure something to make it happen.

answered Nov 28, 2018 at 17:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.