apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.

Home Page:https://www.apolloconfig.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portal 模块 RestTemplate 支持配置 ConnectionTimeToLive

larry4xie opened this issue · comments

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

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

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

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

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

none

其它背景