代君
代君
## Description 之前我们在使用set的时候,出现过smembers命令导致tendis数据库变慢,最终无法提供正常服务的问题。 看了下代码发现smembers依赖于rocksdb的Iterator功能,在set的量比较大的时候可能导致性能问题。 ## Expected Behavior 期望解决smembers的性能问题。 ## Possible Solution 修改set的实现,增加一个双向链表来记录set里面的元素的key(这里类似使用一个额外的skiplist来记录zset的key一样。),并把链表的node记录到rocksdb,并且在 并在metadata里面记录head和teil的list节点。 - 插入节点: 需要多一步操作:在tail或者head出插入node - 删除节点: 需要取出删除节点的前后节点,修改其pre和forwad指针。 - smembers:遍历链表 - 删除:需要清楚链表节点 - 其余命令应该不需要变化无变化。 ## Context 目前我们set相关的数据,都又重新迁回了redis,无法使用tendis带来的存储优势。
local data, status, partial = self.tcp:receive("_a") if __status == STATUS_CLOSED or __status == STATUS_NOT_CONNECTED then --remote was closed. end I use code above to check remote socket is closed,but the...
**Description** `Priority serves as a weighting value to be used for prioritizing across all the instances of all the models. An instance with priority 2 will be given 1/2 the...
目前只有embedding模型为text-embedding-ada-002的时候才会使用OpenAIEmbeddings 现在通过增加EMBEDDING_MODEL_USE_OPENAI和EMBEDDING_MODEL_OPENAI配置,可以使任意模型都可以通过OpenAIEmbeddings来调用自定义的类openai api的server来实现embedding。
return response metadata to associate it with request while there has some error.
1. support tool calling for internlm/internlm2_5-7b-chat model 2. add `ToolParserManager` to manage the tool parsers 3. add a command line which used to specific a customize tool parser which can...
### Describe the bug there is a vxlan iface which named flannel.1 on my machine. ``` # ip -d link show flannel.1 193296: flannel.1: mtu 1450 qdisc noqueue state UNKNOWN...