eureka icon indicating copy to clipboard operation
eureka copied to clipboard

How to change the DEFAULT_NUMBER_OF_RETRIES in com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient

Open dsjayakar opened this issue 4 years ago • 6 comments

Hi,

We are using the eureka-client 1.9.13 version, the default value for the retry is 3, how can we change to a different number?

We deployed 3 services in 2 zones which would require a retry > 3 for switching to another zone.

Thanks,

dsjayakar avatar Apr 19 '21 17:04 dsjayakar

Hi,

We are using the eureka-client 1.9.13 version, the default value for the retry is 3, how can we change to a different number?

We deployed 3 services in 2 zones which would require a retry > 3 for switching to another zone.

Thanks,

Please let us know the best way to achieve retry >3(configurable value)

trumanu1 avatar Apr 23 '21 00:04 trumanu1

I see that public static EurekaHttpClientFactory createFactory is being called directly in all places, making this effectively non-configurable, so this requires code changes to plumb through.

troshko111 avatar Jun 09 '21 19:06 troshko111

@troshko111 Is this change was completed and published?

dsjayakar avatar Nov 03 '21 21:11 dsjayakar

Nothing has been done, nobody picked it up, my understanding was that nobody was interested enough. If you are, I am happy to review / help you to plan this work and review any PRs, we ourselves won't be doing it.

troshko111 avatar Nov 03 '21 23:11 troshko111

Hi, @tbak. I just ask that is there a reason why DEFAULT_OF_NUMBER_RETRIES is fixed, not declared through any properties?

kworkbee avatar Mar 19 '23 05:03 kworkbee

@kworkbee Sorry, I am not able to answer this question. I stopped working on Eureka several years ago.

tbak avatar Mar 20 '23 14:03 tbak