我正在尝试使用minConnsPerNode设置,但似乎不起作用。
我已经在存储库打开了一个问题,但一个月后我仍然没有得到答案。(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()更多细节可以在这期中找到。
发布于 2021-07-14 17:06:24
这个问题已经在3.16.6的aerospike中得到了解决。有关更多详细信息,请参阅issue
https://stackoverflow.com/questions/68221992
复制相似问题