我正在使用 sequelize 连接到 compose.io 上托管的 postgres 数据库。
const db = new Sequelize(DATABASE_URL, {
logging: false,
pool: {
max: 15,
min: 1,
idle: 10000,
acquire: 10000,
},
});
如何设置故障转移门户?
postgres://[username]:[password]@gcp-us-east1-cpu.2.dblayer.com:16070/compose
postgres://[username]:[password]@gcp-us-east1-cpu.0.dblayer.com:16070/compose