修改 querier API 超时时间
创建时间:2024-04-02 最近修改时间:2024-04-02
#1. 修改 querier API 超时时间
- 修改deepflow的
querier 的 configmapclickhouse: timeout: 60 // 查询querier超时时间,单位s1
2
#2. 修改 statistics API超时时间
- 修改statistics的
configmapquerier: timeout: 60 // 查询querier超时时间,单位s default: http_request_timeout: 60 // API请求超时时间,单位s http_response_timeout: 60 // API响应超时时间,单位s1
2
3
4
5注意:该文件为库代码,无法使用配置文件。所以修改代码需要做持久化处理,避免 POD 重启后丢失,可以将该文件写入进 configmap 再挂载到指定位置实现持久化。
#3. 修改页面请求超时时间
- 修改 values-custom.yaml 中 df-web-core 配置
## df-web-core
dfWebCore:
## 自定义 configmap 项,默认项无需配置
customConfig:
app_config_user.js: |-
window.APP_USER_CONFIG = {
API_TIMEOUT: 60 * 1000, // 请求API超时时间,单位ms
}
## e.g. APPLICATION_LAYER_HIDE: false, // 全景图屏蔽应用层数据
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
- 执行
ctrl+F5强制刷新页面