fuse - 如何知道熔断的请求是否拥塞
问题描述
我是新来融合的。我有两个问题:
- 我可以只设置
congestion_threshold
自身的值而不更改默认值max_background
吗? - 如果挂起和处理队列中的异步请求数达到可调拥塞阈值参数的值,我怎么知道它是拥塞的?在哪里检查日志记录?dmesg?
解决方案
未经测试,查看源代码似乎有这样一个单独的选项:https ://github.com/libfuse/libfuse/blob/master/lib/helper.c#L90 :
CONN_OPTION("congestion_threshold=%u", congestion_threshold, 0),
CONN_OPTION("congestion_threshold=", set_congestion_threshold, 1),
同样从代码中,看起来您可以使用fuse_parse_conn_info_opts
. 请参阅https://github.com/libfuse/libfuse/blob/master/include/fuse_common.h#L523:
* The following options are recognized:
*
...
* -o max_background=N sets conn->max_background
* -o congestion_threshold=N sets conn->congestion_threshold
...
**/
struct fuse_conn_info_opts* fuse_parse_conn_info_opts(struct fuse_args *args);
查看内核代码,没有打印出实际发生的拥塞。
推荐阅读
- laravel - Laravel 验证以确保 2 个值不会同时存在
- laravel - composer 需要 laravel/framework 5.5.32 -> laravel/framework[v5.5.32] 可以满足
- ios - 如何获取与iOS设备连接的物理鼠标的当前位置?
- mysql - MySQL LEFT JOIN 未返回所需结果
- tensorflow - 在 Tensorflow 2 的 fit 方法中使用 Dataset 和 ndarray 有什么区别?
- javafx - 如何根据特定的行号和列号设置 TableView 的值
- python - 用熊猫模糊重复
- javascript - xPages Bootstrap Dojo 进度条显示在模态背景后面
- spring-boot - 无法在 k8s pod 中启动 Spring boot 2.3.2
- javascript - 有没有办法观察在 nodejs 中运行的主 js 文件中的文件更改?