{"action":"opened","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5512","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5512/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5512/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5512/events","html_url":"https://github.com/sequelize/sequelize/issues/5512","id":137753796,"number":5512,"title":"Read-replication bad connection","user":{"login":"bringking","id":864845,"avatar_url":"https://avatars.githubusercontent.com/u/864845?v=3","gravatar_id":"","url":"https://api.github.com/users/bringking","html_url":"https://github.com/bringking","followers_url":"https://api.github.com/users/bringking/followers","following_url":"https://api.github.com/users/bringking/following{/other_user}","gists_url":"https://api.github.com/users/bringking/gists{/gist_id}","starred_url":"https://api.github.com/users/bringking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bringking/subscriptions","organizations_url":"https://api.github.com/users/bringking/orgs","repos_url":"https://api.github.com/users/bringking/repos","events_url":"https://api.github.com/users/bringking/events{/privacy}","received_events_url":"https://api.github.com/users/bringking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T02:41:23Z","updated_at":"2016-03-02T02:41:23Z","closed_at":null,"body":"### Sequelize Version\r\n3.17.1\r\n### Behavior\r\nGiven a config with a write-master and multiple read-replicas -\r\n\r\n```js\r\n  \"replication\": {\r\n      \"read\": [\r\n        {\r\n          \"host\": \"localhost\",\r\n          \"username\": \"root\",\r\n          \"password\": \"root\",\r\n          \"port\": 8882 // THIS DB DOESN'T EXIST\r\n        },\r\n        {\r\n          \"host\": \"localhost\",\r\n          \"username\": \"root\",\r\n          \"password\": \"root\",\r\n          \"port\": 8883 // THIS DB DOESN'T EXIST\r\n        }\r\n      ],\r\n      \"write\": {\r\n        \"host\": \"localhost\",\r\n        \"username\": \"root\",\r\n        \"password\": \"root\",\r\n        \"port\": 8889\r\n      }\r\n    },\r\n    \"pool\": {\r\n      \"maxConnections\": 1,\r\n      \"maxIdleTime\": 30,\r\n      \"handleDisconnects\":true\r\n    }\r\n```\r\n\r\nSequelize seems to continually retry connections to the read partners even though the first two connections throw a `SequelizeConnectionRefusedError`.\r\n\r\n### Enhancement or Clarification\r\n\r\nAfter a connection refused error, is it possible to remove a read-replica from the replica set? Or swap it with a backup replica? "}}