mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 12:47:28 +08:00
fix: Enlarge the default retry timeout in ai-proxy (#1640)
This commit is contained in:
@@ -94,7 +94,7 @@ custom-setting会遵循如下表格,根据`name`和协议来替换对应的字
|
|||||||
|------------------|--------|-----------------|-------|-------------|
|
|------------------|--------|-----------------|-------|-------------|
|
||||||
| enabled | bool | 非必填 | false | 是否启用失败请求重试 |
|
| enabled | bool | 非必填 | false | 是否启用失败请求重试 |
|
||||||
| maxRetries | int | 非必填 | 1 | 最大重试次数 |
|
| maxRetries | int | 非必填 | 1 | 最大重试次数 |
|
||||||
| retryTimeout | int | 非必填 | 5000 | 重试超时时间,单位毫秒 |
|
| retryTimeout | int | 非必填 | 30000 | 重试超时时间,单位毫秒 |
|
||||||
|
|
||||||
### 提供商特有配置
|
### 提供商特有配置
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ func (r *retryOnFailure) FromJson(json gjson.Result) {
|
|||||||
}
|
}
|
||||||
r.retryTimeout = json.Get("retryTimeout").Int()
|
r.retryTimeout = json.Get("retryTimeout").Int()
|
||||||
if r.retryTimeout == 0 {
|
if r.retryTimeout == 0 {
|
||||||
r.retryTimeout = 5000
|
r.retryTimeout = 30 * 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user