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

1st
Feb 2016
Niklas Herder
@herder
Feb 01 2016 12:17
Hi, I'm having a weird issue (weird for me at least ;) ) with Zuul and Eureka: I'm trying to get blue-green deployment going with Zuul routing to the backend instances via Eureka. But when I update one of the backend services, Zuul returns a few 500 errors because it tries to reach one of the instances which has gone down, and instead of selecting another instance, it throws an error. I've tried fiddling about with lease renewal timeouts and stuff, but to me it seems that it doesn't understand that it should try another instance. The blue and green apps have two instances each, but cranking up the instance count doesn't seem to help.
Does anyone have any pointers as to what I'm doing wrong?
I have a more or less default setup of Eureka and Zuul.
Dave Syer
@dsyer
Feb 01 2016 12:24
The retry features are part of Ribbon/Hystrix
Not Zuul per se
You can configure retry globally for Ribbon I think
It's a native Netflix thing though (not Spring Cloud)
Niklas Herder
@herder
Feb 01 2016 12:25
Ah, ok! I thought it was autoconfigured somehow. A bit spoiled by all the usual 'just works' with Boot/Cloud, perhaps... :)
Thanks!
Dave Syer
@dsyer
Feb 01 2016 12:26
It might be a useful thing to be on by default
Niklas Herder
@herder
Feb 01 2016 12:27
Yes, it seems more intuitive for me, at least
Fabian Wallwitz
@cforce
Feb 01 2016 16:49
hi
Dave Syer
@dsyer
Feb 01 2016 16:55
ih
Fabian Wallwitz
@cforce
Feb 01 2016 16:58
just found the answer myself.. so no more than hi ;)
Fabian Wallwitz
@cforce
Feb 01 2016 17:04
but..sth else: is there an appropriate best practice to manage external configuration with spring cloud config using git, that shall be "updated" via an API during runtime persistent. It would need ui-> validation and commit on server side secured by auth* . Is there any effort , idea's present?
Dave Syer
@dsyer
Feb 01 2016 17:10
Use github or gitlab?
There are too many existing user tools for git for it to make any sense for us to provide one
Or maybe I don't understand the use case
Fabian Wallwitz
@cforce
Feb 01 2016 17:25
its a local gitblit. the configuration shall be verified (functional) before comitted. In the gold old times we had an rest api which did it and the persisted the cfg values to a repository (db).
Dave Syer
@dsyer
Feb 01 2016 17:36
Sounds like you need pull requests or something
I don't know what gitblit is
This message was deleted
Spencer Gibb
@spencergibb
Feb 01 2016 17:37
So instead of a rest api, commit to a different branch or repo
Dave Syer
@dsyer
Feb 01 2016 17:38
You can probably use gerrit with almost any git repo as well
Fabian Wallwitz
@cforce
Feb 01 2016 20:16
The workflow shall be verification and validation before commit .. how to solve that wie a standard gerrit - is it possivble?
The approach elose would be ..somebody can check in "things" and the the "things" won't load, because the service does late validation..and potentially there is not quality gate (backend validation) right before chechin.. it's to late .. and service may fall down..having now backup.
Popentially the technology offers to solve thta .. but
how .. thats why i'am aksing for best practice or an idea
Fabian Wallwitz
@cforce
Feb 01 2016 20:21
the worflow shall be unatended..
Dave Syer
@dsyer
Feb 01 2016 20:25
Sounds like something you could easily automate with simple shell scripts. Or there are probably CI plugins for Jenkins etc already
It's just a merge after a successful CI job
Fabian Wallwitz
@cforce
Feb 01 2016 20:27
Because the "user" can't be convienced to use any git client..and we have make sure that only "some" files are allowed to be changed..i think we wenn an extra client (at least auth, validation) ..that will do a commit with the files uploaded via rest api.
But there could be merge cobflicts (on git base) .. so maybe for this kind of cfg files ist better to use "simple storage"..replacin on file vx with update v2 ..without merging..
but still making use of the instance provisioning of cfg in spring services
Spencer Gibb
@spencergibb
Feb 01 2016 20:30
maybe you shouldn’t store config in git then. Maybe consul or zookeeper.
Fabian Wallwitz
@cforce
Feb 01 2016 20:30
i am just looking into "other types of backends" for spring cloud config
are there any other backends? Console and zookeeper currently are not part o our blue print..
we use eureka besides
i like the pure (no os installation) java setup