zaunist commented on pull request #6202:
URL: https://github.com/apache/apisix/pull/6202#issuecomment-1047511007


   > @zaunist I am curious why a shorter ttl is chosen?
   
   Hi, @spacewander. Previously, server-info would write a lot of dirty data 
and cause performance problems with ETCD, but with keepalive, this problem is 
avoided and a simple http request does not take up any more performance. So a 
shorter ttl would allow for more timely reporting of Apache APISIX node status. 
One minute heartbeat is too long in my opinion, so it was changed to 36 
seconds, or we could even set a shorter heartbeat, such as nacos, which has a 
default of 5 seconds.
   
   
https://github.com/alibaba/nacos/blob/47d3afd0e4de5019c09a921fff08ae66aed52600/api/src/main/java/com/alibaba/nacos/api/common/Constants.java#L173


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to