简体   繁体   中英

Sequelize connecting to fail over write replica

I am using Sequelize 4.38.0. After reading the docs, I have setup a master write database with 2 read replicas. I am trying to add a fail over for the master write database for high availability. Does sequelize support this? Within the config options, in 'replications' you can pass an array of hosts to read, but not to write =\\

In Cloud SQL, the failover replica automatically replicates from the master and remains read only until a failover is needed. After a failover, the failover replica becomes the master and starts accepting writes. From the application's point of you, it's connecting to the same IP address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM