Skip to content

Commit

Permalink
perf: job-manage 微服务批量获取主机 API调用超时 TencentBlueKing#2242
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Jul 19, 2023
1 parent 42685e7 commit 4665322
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ public ServiceListAppHostResultDTO listAppHostsPreferCache(Long appId,
if (watch.isRunning()) {
watch.stop();
}
if (watch.getTotalTimeMillis() > 1000) {
if (watch.getTotalTimeMillis() > 3000) {
log.warn("ListAppHostsPreferCache slow, watch: {}", watch.prettyPrint());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ data:
ConnectTimeout: 10000
eureka:
enabled: false
feign:
client:
config:
default:
connectTimeout: 5000
readTimeout: 20000
job:
crontab:
db:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ data:
config:
default:
connectTimeout: 5000
readTimeout: 5000
readTimeout: 20000
sync:
connectTimeout: 5000
readTimeout: 30000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ data:
multipart:
max-file-size: 5GB
max-request-size: 5GB
feign:
client:
config:
default:
connectTimeout: 5000
readTimeout: 20000
job:
file-gateway:
worker-tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ data:
default:
connectTimeout: 5000
readTimeout: 20000
sync:
connectTimeout: 5000
readTimeout: 30000
log:
connectTimeout: 5000
readTimeout: 30000
bk:
doc:
root: {{ .Values.bkDocsCenterUrl }}
Expand Down

0 comments on commit 4665322

Please sign in to comment.