2016-12-05 1260 views
0

RDS db instance of class db.t2.micro 18连接活跃RDS db instance of class db.t2.micro有最大66连接,但我面对这个问题SequelizeConnectionError无法连接到数据库

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

回答

0

选择所有conenctions,不只是活跃。

according to docs:

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.