1

我配置功能区如下所示:

ribbon.retry.enabled=true
ribbon.ConnectTimeout=15000
ribbon.ReadTimeout=15000
ribbon.MaxAutoRetries=2
ribbon.MaxAutoRetriesNextServer=1
ribbon.ServerListRefreshInterval=5000
ribbon.OkToRetryOnAllOperations=true

据我所知,这是全局配置。功能区中的租赁控制在服务中,您可以更改功能区配置,如下所示:

you-service.ribbon.retry.enabled=true
you-service.ribbon.ConnectTimeout=15000
you-service.ribbon.ReadTimeout=15000
you-service.ribbon.MaxAutoRetries=2
you-service.ribbon.MaxAutoRetriesNextServer=1
you-service.ribbon.ServerListRefreshInterval=5000
you-service.ribbon.OkToRetryOnAllOperations=true

问题是:如何配置方法以使用功能区重试?

有没有办法:you-service.you-method.ribbon.xxx

4

0 回答 0