首页 > 解决方案 > 如何知道熔断的请求是否拥塞

问题描述

我是新来融合的。我有两个问题:

  1. 我可以只设置congestion_threshold自身的值而不更改默认值max_background吗?
  2. 如果挂起和处理队列中的异步请求数达到可调拥塞阈值参数的值,我怎么知道它是拥塞的?在哪里检查日志记录?dmesg?

标签: fuse

解决方案


未经测试,查看源代码似乎有这样一个单独的选项: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);

查看内核代码,没有打印出实际发生的拥塞。


推荐阅读