These are chat archives for spring-cloud/spring-cloud

18th
Jun 2018
Gilles Robert
@ask4gilles
Jun 18 2018 06:14
Hi,
I'm experiencing the same issue as described here: spring-cloud/spring-cloud-config#984
Does anybody found a workaround?
Anders Engström
@andersenleo
Jun 18 2018 07:55
any idea why this build is failing? https://circleci.com/gh/spring-cloud/spring-cloud-netflix/3682 — runs OK locally.. (but locally I get errors in contracts test in hystrix-stream instead).
mohanrao
@mohanrao
Jun 18 2018 15:46
Hi.. Is the final finchley going to be released today?
Basanagoud
@Basanagoud
Jun 18 2018 16:17
Hi, all... how to send notification to multi users using sseemitter in spring.
CarrierDirectDavid
@CarrierDirectDavid
Jun 18 2018 21:23

Hello all, I'm trying to configure the spring-cloud-gateway so that when configured with a loadbalanced endpoint lb://service it retries a configurable amount of times until it finds an available instance. I'm using a hystrix filter for the timeout, but I don't know what's the proper way to configure the retry configuration based on that timeout. This is the current configuration:

route {
                path("/service/**")
                filters {
                    filter(RetryGatewayFilterFactory().apply(retry))
                    hystrix {}
                }
                uri("lb://service")
}

Let me know if you have any ideas...

Spencer Gibb
@spencergibb
Jun 18 2018 21:36
Hystrix should go first. otherwise you're trying to create a circuit on an indivudual instance
mohanrao
@mohanrao
Jun 18 2018 21:36
@spencergibb any timeline changes for the release of Finchley
Spencer Gibb
@spencergibb
Jun 18 2018 21:37
@mohanrao no, it is in progress
mohanrao
@mohanrao
Jun 18 2018 21:37
Thanks @spencergibb waiting for the announcement :)
Also one quick question if i don't set spring.cloud.refresh.refreshable=none
with RC2 my server is not getting started
I saw your comment on of the comment in github defect by @spencergibb . Where can i find the documentation of what it is doing for me
CarrierDirectDavid
@CarrierDirectDavid
Jun 18 2018 21:44
@spencergibb if hystrix goes first, how can I retry based on the 504 from hystrix?
Spencer Gibb
@spencergibb
Jun 18 2018 21:52
you shouldn't retry on a code that the gateway generates, it needs to come from the client
CarrierDirectDavid
@CarrierDirectDavid
Jun 18 2018 21:56
that's the thing though, it's not the gateway that generates it per se, it's the hystrix filter based on
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 3000