neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

Fail to create a new connection for the connection pool. #347

Closed BhaskaranR closed 7 years ago

BhaskaranR commented 7 years ago

I connect to rethinkdb with docker image package verion - 2.3.5, Initially it connects and then throws the error

{
    servers: [
        { host: '192.168.99.100', port: 32780 },
        { host: '192.168.99.100', port: 32779 }
    ],
    pool: true,
    buffer: 300,
    max: 3000
}

Creating a pool connected to 192.168.99.100:32780
Creating a pool connected to 192.168.99.100:32780
Entering slow growth mode
Fail to create a new connection for the connection pool. Error:{"msg":"Failed to connect to 192.168.99.100:32780 in less than 20s","message":"Failed to connect to 192.168.99.100:32780 in less than 20s.","isOperational":true}
Entering slow growth mode
Fail to create a new connection for the connection pool. Error:{"msg":"Failed to connect to 192.168.99.100:32780 in less than 20s","message":"Failed to connect to 192.168.99.100:32780 in less than 20s.","isOperational":true}
BhaskaranR commented 7 years ago

@neumino could you take a look this please. it is a show stopper

neumino commented 7 years ago

@BhaskaranR - I think the driver never successfully connect to your cluster.

Did you try connecting with the official driver? My guess is that it doesn't work too.

Did you open your port on Docker? What's your cluster configuration? Docker file?