我试图使用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()
更多细节可以在问题中找到