Hystrix icon indicating copy to clipboard operation
Hystrix copied to clipboard

Renewal of HystrixCommandProperties information reported by HystrixCommandMetrics

Open TheTweak opened this issue 11 years ago • 4 comments

I have a simple custom HystrixPropertiesStrategy that maintains properties cache with time-based eviction, but when some property changes, it is not propagated to HystrixCommandMetric. I haven't found any plugin (tried HystrixMetricsPublisher) setup that allows to invalidate HystrixCommandMetric too. Hystrix version is 1.3.19

TheTweak avatar Jun 21 '15 07:06 TheTweak

I'm not 100% sure I understand your use case here. Are you saying that you want a properties strategy which has a TTL on properties?

When a HystrixCommand gets constructed (in both 1.3 and 1.4), the properties are retrieved through the HystrixPropertiesStrategy layer of indirection. So you should be able to model any sort of property algorithm you'd like with a custom HystrixPropertiesStrategy.

I'm not sure what the metrics publishing has to do with properties.

mattrjacobs avatar Jun 24 '15 04:06 mattrjacobs

My problem is that after I've implemented TTL on properties using custom HystrixPropertiesStrategy, and when properties are changed, this change is not propagated to HystrixCommandMetrics because HystrixCommandMetrics get properties once it is created, and it cannot be changed.

TheTweak avatar Jun 24 '15 06:06 TheTweak

I'm pursuing a way to create custom HystrixCommandMetrics instances in #843. This should be possible once that change is done and released

mattrjacobs avatar Aug 03 '15 17:08 mattrjacobs

Ok, cool, closing it with reference to #843.

TheTweak avatar Aug 07 '15 05:08 TheTweak