From f7979e46f3b1f9c0052adb9e2ffa959730dcda6e Mon Sep 17 00:00:00 2001 From: xiehan <52160700+Barenboim@users.noreply.github.com> Date: Sun, 12 Dec 2021 16:45:20 +0800 Subject: [PATCH] Update about-config.md --- docs/en/about-config.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/about-config.md b/docs/en/about-config.md index ba78043a2e..3b8a94446d 100644 --- a/docs/en/about-config.md +++ b/docs/en/about-config.md @@ -80,9 +80,11 @@ int main() ~~~ Most of the parameters are self-explanatory. Note: the ttl and related parameters in DNS configuration are in **seconds**. The timeout for endpoint is in **milliseconds**, and -1 indicates an infinite timeout. -dns\_threads indicates the total number of threads accessing DNS in parallel, but by default, we use asynchronous DNS resolving and don't create any dns threads. +dns\_threads indicates the total number of threads accessing DNS in parallel, but by default, we use asynchronous DNS resolving and don't create any dns threads (Except windows platform). dns\_server\_params indicates parameters that we access DNS server, including the maximum cocurrent connections, and the DNS server's connecting and response timeout. compute\_threads indicates the number of threads used for computation. The default value is -1, meaning the number of threads is the same as the number of CPU cores in the current node. +resolv\_conf\_path indicate the path of dns resolving configuration file. The default value is "/etc/resolv.conf" on unix platforms and NULL on windows. On the windows platform, we still use multi-threaded dns resolving by default. +hosts_path indicates the path of the **hosts** file. The default value is "/etc/hosts" on unix platforms. If resolv_conf_path is NULL, this configuration will be ignored. poller\_threads and handler\_threads are the two parameters for tuning network performance: * poller\_threads is mainly used for epoll (kqueue) and message deserialization.