gpt4 book ai didi

node.js - Aerospike NodeJS 客户端 - "minConnsPerNode"选项

转载 作者:行者123 更新时间:2023-12-04 14:55:03 24 4
gpt4 key购买 nike

我正在尝试使用 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()

更多细节可以在issue中找到

最佳答案

这已在 aerospike@3.16.6 中修复。更多详细信息,请参阅 issue

关于node.js - Aerospike NodeJS 客户端 - "minConnsPerNode"选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68221992/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com