Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aerospike NodeJS Client - "minConnsPerNode" Option

I'm trying to use the minConnsPerNode setting but it doesn't seem to work.

I've opened an issue at the repository but after a month I still got no answer. (Issue)

  const Aerospike = require('aerospike')
  
  const config = {
    hosts: '127.0.0.1:3000',
    minConnsPerNode: 1, // works if minConnsPerNode is removed
  }
  
  const run = async () => {
    Aerospike.setDefaultLogging({ level: Aerospike.log.DEBUG, file: process.stderr.fd })
    const client = await Aerospike.connect(config);
  
    const puts = Array.from({ length: 5 }, (_, i) => client.put(new Aerospike.Key('ssd-store', 'test', i), { i }))
  
    await Promise.all(puts)
    client.close()
  }
  
  run()

More details can be found in the issue

like image 675
AnC Avatar asked May 28 '26 08:05

AnC


1 Answers

This has been fixed in [email protected]. More details can be found in the issue

like image 133
AnC Avatar answered Jun 04 '26 14:06

AnC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!