tarantool/go-tarantool

pool: improve pool.Connect logic

oleg-jukovec opened this issue · 0 comments

The current pool.Connect logic:

  1. Pool will use only endpoints available at the call moment.
  2. If there are no available endpoints then a pool will not be created.

We need to rework this two moments:

  1. Some endpoints may gone forever from a client point of view. We could avoid it and try to reconnect to unavailable endpoints in a background (as it already done if an endpoint became available).
  2. We could create/use (with an error) an empty pool since we have Add and Remove methods. So from the API point of view it would be nice to have an ability to create a pool object and add instances later.