Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portal 模块 RestTemplate 支持配置 ConnectionTimeToLive #5120

Closed
larry4xie opened this issue Apr 7, 2024 · 0 comments
Closed

Portal 模块 RestTemplate 支持配置 ConnectionTimeToLive #5120

larry4xie opened this issue Apr 7, 2024 · 0 comments

Comments

@larry4xie
Copy link
Contributor

你的特性请求和某个问题有关吗?请描述

  • 当前 portal 服务发现 admin service 的客户端连接使用默认的 ConnectionTimeToLive (默认值 -1 也就是不设置),相关代码如下:
  • 在公司内部故障演练场景下,注入了丢包的网络故障,这个时候由于没有设置 ConnectionTimeToLive,portal 无法重建连接感知故障,无法刷新 admin service 地址

清晰简洁地描述一下你希望的解决方案

希望 Portal 模块 RestTemplateFactory 支持配置 ConnectionTimeToLive,例如 PortalConfig 新增 api.connectionTimeToLive 配置,默认值 -1 保持对之前版本的兼容性

清晰简洁地描述一下这个特性的备选方案

none

其它背景

larry4xie added a commit to larry4xie/apollo that referenced this issue Apr 7, 2024
nobodyiam pushed a commit that referenced this issue Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant