Override Hystrix properties when using Spring Cloud Netflix

2.4k views Asked by At

I am having a Spring Boot application that uses Netflix Hystrix via the Spring Cloud libraries, everything is working fine.

I want to override some basic properties for Hystrix, like hystrix.threadpool.default.coreSize and/or hystrix.threadpool.default.maxQueueSize for example. Unfortunately, I could not find some out of the box Spring Boot properties to do this so what would I need to do to set up these properties at application startup?

How are these properties set up in the spring-cloud-starter-hystrix module?

1

There are 1 answers

1
M. Deinum On BEST ANSWER

Just adding those properties to the application.properties file should work.

hystrix.threadpool.default.coreSize=
hystrix.threadpool.default.maxQueueSize=