简体   繁体   English

排序连接以故障转移写副本

[英]Sequelize connecting to fail over write replica

I am using Sequelize 4.38.0. 我正在使用Sequelize 4.38.0。 After reading the docs, I have setup a master write database with 2 read replicas. 阅读文档后,我已经设置了具有2个只读副本的主写数据库。 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. 在Cloud SQL中,故障转移副本会自动从主数据库复制并保持只读状态,直到需要进行故障转移为止。 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. 从您的应用程序角度来看,它正在连接到相同的IP地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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