servicecomb-service-center icon indicating copy to clipboard operation
servicecomb-service-center copied to clipboard

是否可以提供支持自定义SC的自身实例TTL的能力

Open colin-si opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe. 当前SC自身实例的TTL周期固定为30*(3+1),是否可以将该配置开放出去,支持可以根据自身系统的具体情况进行配置。比如说,当前实例下线时间配置成了2min,当SC发生重启时,有可能在2min内会查询到多个SC的实例信息,存在新老实例并存的问题。如果说配置开放出去的话,可以根据在不同系统下SC的重启时间配置对应的TTL时间来解决或者降低对应问题出现的概率。

https://github.com/apache/servicecomb-service-center/blob/9ecab25a509057a3bfe8ab967b754562b6bff52b/server/core/microservice.go#L41C28-L41C28

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

colin-si avatar Jan 02 '24 08:01 colin-si