Skip to content

[FEATURE] - Add random time to the scheduled task for pulling instances from serviceCenter. #4942

@chengyouling

Description

@chengyouling

Problem this feature would solve

servicecomb引擎注册中心会定期1小时清楚本地实例缓存,在请求缓存后,客户端请求需要从etcd中获取实例数据,导致响应时延增加,这样导致原本请求时间错开的请求慢慢的步调一致,从而引发高并发请求服务端获取实例接口,触发限流异常。

Describe the solution

客户端定时更新本地实例缓存时,休眠时间增加随机数,以达到请求服务端的时间是错开的,避免大量服务同步调用注册中心,触发限流异常。

Alternatives considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions