优化
This commit is contained in:
parent
af7a9ca39d
commit
9203df9ecc
@ -68,7 +68,7 @@ public class K8sServiceIntegrationImpl extends BaseExternalSystemIntegration<Api
|
||||
// 直接使用config作为kubeconfig内容
|
||||
ApiClient client = Config.fromConfig(new StringReader(config));
|
||||
client.setConnectTimeout(15000); // 15秒连接超时
|
||||
client.setReadTimeout(120000); // 120秒读取超时(优化日志查询等耗时操作)
|
||||
client.setReadTimeout(30000); // 30秒读取超时(避免健康检查时长时间阻塞)
|
||||
|
||||
// 关键优化:强制使用 HTTP/1.1,避免 HTTP/2 连接复用问题
|
||||
// HTTP/2 在 K8S API 高并发场景下容易出现 ConnectionShutdownException、Broken pipe 等问题
|
||||
|
||||
Loading…
Reference in New Issue
Block a user