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

2nd
Oct 2015
Ryan Baxter
@ryanjbaxter
Oct 02 2015 00:52
ok so moving things to a bean worked
should I create an issue for @HystrixCommand not working on a controller method?
also after I restarted my computer and didnt use the VPN my DNS issues seemed to be resolved :)
Spencer Gibb
@spencergibb
Oct 02 2015 01:59
No need for an issue, we already have one
Tommy Ludwig
@shakuzen
Oct 02 2015 05:59

I wanted to ask for some advice / general wisdom on using Spring Cloud Config with a large (50+?) number of applications. I know there were issues opened about this previously, which lead to the implementation of multiple git repos and searchPaths.

Personally, I would like to keep the whole department's configuration in one repository if possible, but I'd rather not have the mess of all those files in one directory. searchPaths comes in handy here, but when a new team adopts Spring Cloud Config in the department we need to add their folder to searchPaths. This is less than desirable if it requires a redeploy (even a restart I'd prefer to avoid).

Can searchPaths be updated on the fly?

Dave Syer
@dsyer
Oct 02 2015 06:36
It can
I'm not sure it works with 1.0, but you can even configure it in the same repository as the rest of the apps
Tommy Ludwig
@shakuzen
Oct 02 2015 06:38
If I set the config server to bootstrap itself?
Dave Syer
@dsyer
Oct 02 2015 06:39
Indeed
Tommy Ludwig
@shakuzen
Oct 02 2015 06:40
In that case it uses bootstrap.yml in the config repo?
Dave Syer
@dsyer
Oct 02 2015 06:41
Yes, you need to declare the repository URL somewhere (bootstrap.yml is a convenient choice). With 1.0 for sure there's no push notification (so you need to /refresh to rebound changes).
Tommy Ludwig
@shakuzen
Oct 02 2015 06:45
Hitting /refresh is probably fine for us since we don't have to take the app out of service, but we'll probably also be on 1.1 by the time we get to prod.
Thank you for the help, as always!
Dave Syer
@dsyer
Oct 02 2015 06:57
Clarification: bootstrap.yml isn't in the remote (git) repo. It's inly used to locate the URL
Tommy Ludwig
@shakuzen
Oct 02 2015 06:59
Okay. I thought searchPaths had to be set in bootstrap.yml, but I guess it makes sense that it is used at runtime, not while bootstrapping. Thanks for the clarification.
Felipe Santos
@felipemsantos
Oct 02 2015 20:25
Hey guys, I have some microservices (one them called CarrierService) developed over spring-cloud-netflix (eureka, zuul, hystrix) and now I'm trying to create some FeignClients in a separeted project using Ribbon+Eureka to discover and balance all requests to this services, but when I run my unit tests I got a RuntimeException saying "com.netflix.client.ClientException: Load balancer does not have available server for client: CarrierService"
Davi Alves
@davicdsalves
Oct 02 2015 20:27
This happen when you run the unit tests for the FeignClients?
Felipe Santos
@felipemsantos
Oct 02 2015 20:27
I’ve tried to register my ‘client’ project module on eureka to but I’m continuing on the same situation
yep
Spencer Gibb
@spencergibb
Oct 02 2015 20:28
eureka doesn’t really work well in unit tests
Felipe Santos
@felipemsantos
Oct 02 2015 20:29
Is there any way to test this clients over registered services?
Felipe Santos
@felipemsantos
Oct 02 2015 20:31
thanks @spencergibb
Felipe Santos
@felipemsantos
Oct 02 2015 20:40
So it's necessary to specify a ServerList? Doing this I'm just turning off Eureka integration?
Spencer Gibb
@spencergibb
Oct 02 2015 21:49
yes
Felipe Santos
@felipemsantos
Oct 02 2015 22:23
ok, thanks again @spencergibb