How to connect primary and secondary servers ?
vbalakrishnasolum opened this issue · 2 comments
vbalakrishnasolum commented
When primary server goes down, it has to connect automatically to secondary server.
It is not working when we give primary and secondary servers. like below
postgresql://postgres:postgres@192.168.1.1:5432,192.168.1.2:5433/database1
If we use above connection string we can reproduce
PostgreSQL
- Version of pg-promise:10.8.1
- OS type (Linux/Windows/Mac): MAC
- Version of Node.js:14.17.0
vitaly-t commented
This library does not control anything connection-related, it is done in the underlying driver. It simply passes connection details to that driver, unchanged, and that's it.
vbalakrishnasolum commented
Thank you.