Skip to content

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

@colin-si

Description

@colin-si

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions