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

6th
Nov 2017
Jose Armesto
@fiunchinho
Nov 06 2017 10:56
hey guys, is there a way to configure Hystrix circuits per instance instead of per service? I mean, we have 3 instances running on AWS right now, and we'are migrating to a different platform. If I deploy one instance on the new platform, and that instance is failing, clients will open the circuit even thought I have 3 healthy instances. Is there a way to have a circuit for every different instance?
Amin Abu-Taleb
@aabutaleb
Nov 06 2017 14:48
Hi, we're having an issue here with eureka (or might not be an issue at all but is a bit annoying) whenever we terminate an instance of a service (downscaling) it takes some time to de-register from Eureka, during these time we get some 500 errors from zuul every time a client is sent to that (dead) instance. Is there any best practices around this? Is it possible to programatically de-register from eureka before shutting down?
Jose Armesto
@fiunchinho
Nov 06 2017 15:03
you should probably set your instances to OUT_OF_SERVICE before de-registering them from Eureka
that way, clients won't use the instances marked as OUT_OF_SERVICE
and after some time you can finally de-register them, since clients won't be using them anymore
William S Johnstone III
@wjohnst3
Nov 06 2017 16:53
I was wondering if someone could help me out. I am implementing a cloud config server backed by a git repo. I have boot version 1.5.8.RELEASE and cloud depends version Dalston.SR4. My config sets url, ignoreLocalSshSettings, hostKey, hostKeyAlgorithm, and private-key. When I start the application the config is read from my config yml and passes validation. Spring then errors in TransportConfiguration.java with a strange error involving toString. Class SshUriProperties seems to be missing a concrete toString in an inner static class extending from abstract class SshUri??? Has anyone else seen this?
image.png
William S Johnstone III
@wjohnst3
Nov 06 2017 16:59
I did try to upgrade boot to 2.0.0.M5 and 2.0.0.M6. This particular error when away, but I had loads of other errors regarding the actuator of all things. So, I'm back to 1.5.8. I must also say that I´m using GitLab.
Dave Syer
@dsyer
Nov 06 2017 17:42
Looks like your classpath is fubar.
I doubt if it matters about gitlab
If you can share a sample app it should be possible to diagnose it.
William S Johnstone III
@wjohnst3
Nov 06 2017 22:53
Thank you Dave for your response. I created an example project in github. I created another config repo with a deploy key. See here, https://github.com/wjohnst3/example-config-server and added the private key to the server app yml.
image.png