"Aerospike NodeJS客户端 -“minConnsPerNode”选项"

3

我试图使用minConnsPerNode设置,但它似乎不起作用。

我已在存储库上发布了一个问题,但一个月过去了,我仍然没有得到答复。(问题链接

  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()

更多细节可以在问题中找到

1个回答

2
这个问题已经在 aerospike@3.16.6 中得到了解决。 更多细节可在此处找到。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接