postgresql - SequelizeConnectionError 无法连接到数据库

标签 postgresql amazon-web-services sequelize.js aws-rds

我的 RDS db instance of class db.t2.micro 有 18 个事件连接,因为 RDS db instance of class db.t2.micro 最多有 66 个连接,但我正面临这个问题

Unable to connect to the database: { [SequelizeConnectionError: remaining connection slots are reserved for non-replication superuser and rds_superuser connections]

最佳答案

选择所有连接,而不仅仅是事件连接。冲田

max_connections (integer) Determines the maximum number of concurrent connections to the database server. The default is typically 100 connections, but might be less if your kernel settings will not support it (as determined during initdb). This parameter can only be set at server start.

When running a standby server, you must set this parameter to the same or higher value than on the master server. Otherwise, queries will not be allowed in the standby server.

关于postgresql - SequelizeConnectionError 无法连接到数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40968010/

相关文章:

java - 如何在复合主键中使用外键?

node.js - 如何迁移 Sequelize 关联?

javascript - Sequelize 语法错误

javascript - Sequelizejs : no auto-generation of methods from associations

amazon-web-services - 胶水连接无法通过 cloudformation 工作。它给出错误: Unable to resolve any valid connection

sql - 防止 SQL 事务中的竞争条件以确保数据完整性

sql - 如何只允许一个表的一行?

Java SQL "ERROR: Relation "表名“不存在”

java - 是否可以在不使用 ETag 的情况下使用 aws-java-sdk-s3 进行分段上传?

amazon-web-services - 在 Glue 作业中创建 Glue 数据目录表