Browse Source

调整hystrix的线程数量

dev
wangxianzhang 4 years ago
parent
commit
4a081313a4
  1. 1
      epmet-module/open-data-worker/open-data-worker-server/pom.xml
  2. 5
      epmet-module/open-data-worker/open-data-worker-server/src/main/resources/bootstrap.yml

1
epmet-module/open-data-worker/open-data-worker-server/pom.xml

@ -2,6 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>0.3.1</version>
<parent>
<artifactId>open-data-worker</artifactId>
<groupId>com.epmet</groupId>

5
epmet-module/open-data-worker/open-data-worker-server/src/main/resources/bootstrap.yml

@ -112,6 +112,11 @@ hystrix:
isolation:
thread:
timeoutInMilliseconds: 60000 #缺省为1000
threadpool:
default:
coreSize: 10
maxQueueSize: 500
queueSizeRejectionThreshold: 500
ribbon:
ReadTimeout: 300000

Loading…
Cancel
Save