Xin.Zh

Results 63 issues of Xin.Zh

Welcome to use pika. To know who is using it, please append your org info as follows, * Organization:Qihoo (Required) * Location: Hangzhou, Zhejiang, China(Required) * Contact: [email protected] (Optional) *...

**What would you like to be added**: All your requests are welcome.

After release so many versions, maybe we need to update the readme to let users' know this lib's new features.

### Which PikiwiDB functionalities are relevant/related to the feature request? Pika 已经实现了混合存储:在内存 RedisCache 中缓存热数据,在磁盘中存储全量数据。现需要在这个基础之上,继续优化读写流程,提高吞吐,降低延时。 ### Description ![image](https://github.com/OpenAtomFoundation/pika/assets/7959374/647357dd-cb06-4bff-b297-2dcda44c1b05) from https://tech.meituan.com/2024/03/15/kv-squirrel-cellar.html ### Proposed solution process: * 1 当网络线程收到一个请求之后,会先判断是否为一个读请求,如果是,就会直接去读内存引擎 * 2 我们服务的内存引擎会缓存硬盘引擎上的热点数据,如果内存引擎命中的话,网络线程就可以直接返回结果给客户端。这样在网络线程内就实现了请求的闭环处理,相比原来的模型可以去除所有因请求流转造成的 CPU...

✏️ Feature
core
3.5.4
4.0.0

最近研究nlb,nlb/src/agent/zkloadreport用于server mode下定时向zk节点/loadreport/10.0.0.1设置整个server的load信息:{timestamp: ms, cpu: cpu_percent, mem_total: mem_total, mem_free: mem_free}。 我的问题是:这些上报的值在哪个模块被使用?我穷尽洪荒之力去查找也没有找到,恕我资质愚钝,请bisonliao之后的维护者出于严谨的态度指导下,这个值是怎么用的呢?

在测试nlb/src/api/nlbapi_test.c的时候发现: nlb/src/api/nlbapi.c: calc_success_ratio最后一步req_total结果为0!!! 修改为: float calc_success_ratio(struct shm_servers *shm_servers, struct server_info *server) { uint32_t req_total; req_total = server->failed + server->success; if (req_total < shm_servers->shaping_request_min) { return 100.0; } return ((float)server->success) /...

在测试nlb/agent的时候,发现用户vag启动进程agent,agent进程创建的/var/nlb,vag用户却进不去,最后发现是nlb/src/comm/nlbfile.c:check_and_mkdir代码写的有瑕疵,现改动如下: mode_t getumask() { mode_t mask = umask(0); return mask; } /** * @brief 检查并创建目录 */ bool check_and_mkdir(const char *path) { if (!path) { return false; } if (!check_dir_exist(path)) {...

nlb/api/nlbapi_test.c中,line 115~117用到了上面这两个结构体,但是找不到他们定义,请把这两个结构体补充上,谢谢。

https://github.com/Tencent/MSEC/blob/75000df7dab91bd2d682fcfc73e1db184135a99c/monitor/agent/monitor_api/mmap_queue.c#L137 这行代码的fd2,在退出其所在的语句块的时候没有被close掉。

上面这个宏你虽然定义了,但是没见到调用的地方。 另外,这个宏里面使用的Attr_API这个接口,如果记忆不错的话,这是腾讯内部monitor的上报接口吧?这个内部的东西的实现你没有暴露出来,你调用他干嘛呢? 题外话:腾讯内部上报Attr_API这个借口是个整数id,一个整数挺简洁的,无非是后台多一个table,记录整数对应的服务+属性名称,你们却用了service+attr替代之,搞了这么长的字符串,实在想不明白有嘛好处?