Hi All,
We are using Aerospike on production for one of our use case. We perform both read as well as write transactions on the DB. Currently, in one of the flow, we update ~1.5K records with individual DB calls one after another. We recently, changed this to leverage Batch Write feature in server version v.6.0. After switching to batch writes, we are seeing NO_AVAILABLE_CONNECTIONS_TO_NODE issues while performing batch writes.
- Connection Pool Size: 100 [default]
- LimitConnectionsToQueueSize = true [default]
- Socket and Total Timeout = 20 seconds
- Concurrent Node in Batch Write Policy = 1 [One node at a time]
We tried few changes like,
- Change LimitConnectionsToQueueSize to false
- Reducing batch size from 1.5K to 500 records
- Initially Concurrent Node in Batch Write Policy was All nodes, but then we changed it to 1. [One node at a time]
But we are still facing same issue, surprisingly when we move back to our older implementation of separate 1.5K calls, we don’t see any call failing due to NO_AVAILABLE_CONNECTIONS_TO_NODE issue.
If batch write uses less connections, then it should certainly not fail with NO_AVAILABLE_CONNECTIONS_TO_NODE error compared with individual call approach.
Please help us understanding problem here. Thanks in advance