Skip to content

Commit

Permalink
Merge pull request #92 from mtyni/transport-hystrix-defaults
Browse files Browse the repository at this point in the history
Transport Hystrix configuration
  • Loading branch information
ZakarFin authored Oct 5, 2017
2 parents ecdf2da + ea4cd11 commit 8d8c60b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public HystrixJob(final String groupName, final String commandName) {
.withQueueSizeRejectionThreshold(PropertyUtil.getOptional("oskari." + groupName + ".job.pool.limit", 100)))
.andCommandPropertiesDefaults(
HystrixCommandProperties.Setter()
.withExecutionTimeoutInMilliseconds(PropertyUtil.getOptional("oskari." + groupName + ".job.timeoutms", 15000)))
.withExecutionTimeoutInMilliseconds(PropertyUtil.getOptional("oskari." + groupName + ".job.timeoutms", 25000))
.withCircuitBreakerRequestVolumeThreshold(PropertyUtil.getOptional("oskari." + groupName + ".failrequests", 5))
.withMetricsRollingStatisticalWindowInMilliseconds( PropertyUtil.getOptional("oskari." + groupName + ".rollingwindow", 100000))
.withCircuitBreakerSleepWindowInMilliseconds(PropertyUtil.getOptional("oskari." + groupName + ".sleepwindow", 20000)))
);
}

Expand Down

0 comments on commit 8d8c60b

Please sign in to comment.