diaosj opened a new issue #4010:
URL: https://github.com/apache/apisix/issues/4010


   ### Issue description
   
   Two questions about `dns_resolver_valid` and `resolver_timeout`.
   
   1. What's the default unit?
   In my memory, the default unit is second rather than millisecond. And I 
found this comment in config.yaml: 
https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L111
   I guess the description "The unit is second." is valid for both 
`dns_resolver_valid` and `resolver_timeout`?
   And I found Nginx doc that says: "A value without a suffix means seconds. It 
is recommended to always specify a suffix."
   http://nginx.org/en/docs/syntax.html
   But the Nginx code here: 
https://github.com/nginx/nginx/blob/eb52de83114e8d98722cd17ec8435c47956b6315/src/http/ngx_http_core_module.c#L731-L733
   `resolver_timeout` seems to be used with `ngx_conf_set_msec_slot`. "msec" 
here implies that unit is millisecond? I'm confused.
   And I tried to set this param like this: `resolver_timeout: 5s`. But APISIX 
said it can only be assigned with a number. Haha.
   
   2. In older versions, both `dns_resolver_valid` and `resolver_timeout` are 
enabled. Now only  `resolver_timeout` is enabled in config.yaml. Curious about 
this change. ^_^
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to