2016-12-05 1259 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.