You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the pool tries to make a connection to Vertica (which is not working, because at the given host/port is no Vertica) but does not switch to the backup. I see the following in the log:
2023-01-31T09:51:41.295Z checking client timeout
2023-01-31T09:51:41.296Z connecting new client
2023-01-31T09:53:51.132Z client failed to connect
2023-01-31T09:53:51.132Z pulse queue
2023-01-31T09:53:51.133Z no queued requests
Notice, that it takes the pool more than two minutes to notice, that it is not able to connect.
At the end, I get the following error: Error acquiring a connection from pool: connect ETIMEDOUT 10.168.179.57:9999 +0ms
How can I make vertica-nodejs to use backup_server_node in case of a connection failure?
The text was updated successfully, but these errors were encountered:
To test the backup_server_node configuration, I created a configuration with an invalid host/port but a valid backup_server_node:
Then I get a pool with this connection details:
const pool = new Pool(connection);
When I make a query on this pool
the pool tries to make a connection to Vertica (which is not working, because at the given host/port is no Vertica) but does not switch to the backup. I see the following in the log:
Notice, that it takes the pool more than two minutes to notice, that it is not able to connect.
At the end, I get the following error:
Error acquiring a connection from pool: connect ETIMEDOUT 10.168.179.57:9999 +0ms
How can I make vertica-nodejs to use backup_server_node in case of a connection failure?
The text was updated successfully, but these errors were encountered: