Question regarding resilience4j-spring-cloud2 usage
See original GitHub issueResilience4j version: 1.3.1
Java version: 1.8
I have added resilience4j-spring-cloud2
, spring-boot-starter-actuator
, spring-boot-starter-aop
, to pom.xml and also added config server details to bootstrap.properties. At runtime I have changed a property and ran /actuator/refresh
, which returned the modified properties as response like below.
[
"resilience4j.threadPoolBulkhead.configs.default.maxThreadPoolSize"
]
I have also written test endpoint /ping/prop
which returns the value of resilience4j.bulkhead.max.thread.pool.size
to make sure refresh is working as expected.
@Value("${resilience4j.threadPoolBulkhead.configs.default.maxThreadPoolSize}")
private String maxThreadPoolSize;
However When I have used /actuator/metrics/resilience4j.bulkhead.max.thread.pool.size
I don’t see the refreshed value is getting reflected in measurements
. I also observed when doing refresh the debugger it’s going to AbstractRefreshScopedBulkheadConfiguration.threadPoolBulkheadRegistry()
method though it’s annotated with @RefreshScope
. Am I missing something here? I have also checked the demo project https://github.com/resilience4j/resilience4j-spring-cloud2-demo for usage, didn’t find any clue.
FYI, I have some default properties in application.properties, and the plan is to provide different values per environment via centralized configuration.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
Yes. I tested with following changes.
Test result
@Romeh Yes right.
Metric response is like following.