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

23rd
Mar 2016
Tommy Ludwig
@shakuzen
Mar 23 2016 05:25
http://projects.spring.io/spring-cloud/ in the last paragraph mentions spring-cloud-starter-dependencies but I believe it is actually supposed to just be spring-cloud-dependencies
Dave Syer
@dsyer
Mar 23 2016 07:10
Thanks.
Dreampie
@Dreampie
Mar 23 2016 09:12
@dsyer spring-cloud/spring-cloud-netflix#909
Dave Syer
@dsyer
Mar 23 2016 09:47
Good idea, thanks
Jacques-Etienne Beaudet
@jebeaudet
Mar 23 2016 14:38
I'm using Zuul with Ribbon and I'm trying to dynamically change the ReadTimeout value of a client. From what I gathered, in RibbonRoutingFilter, it uses the SpringClientFactory to create clients for each service by instantiating a new ApplicationContext. My timeout values are stored in Archaius and are properly injected when the context is created (ie., the first time zuul answers a call to this service). However, the value is set in the RestClient constructor and are not dynamic. I tried with the actuator refresh endpoint to get rid of those but it doesn't work. Am I missing something obvious here? Thx
Spencer Gibb
@spencergibb
Mar 23 2016 14:43
What version? You should use normal spring boot configuration not archaius directly.
How are you setting the values?
Jacques-Etienne Beaudet
@jebeaudet
Mar 23 2016 14:43
Angel.SR4 and Spring boot 1.3.3
we're using Archaius to set the values
it ends up in Ribbon via the com.netflix.config.ConfigurationManager
If I restart my Zuul application the new values are applied just fine but I'd like to avoid that
Spencer Gibb
@spencergibb
Mar 23 2016 14:54
We support setting the values via spring boot configuration.
Angel and 1.3.x is use at your own risk and isn't officially supported yet.
pradeepkusingh
@pradeepkusingh
Mar 23 2016 14:55
@spencergibb - Is the error phase is suppoted in angel sr4 zuul ?
This message was deleted
ERROR filters execute when an error occurs during one of the other phases.
Jacques-Etienne Beaudet
@jebeaudet
Mar 23 2016 14:59
it is supported AFAIK @pradeepkusingh, look in ZuulServlet, you will see the flow there
pradeepkusingh
@pradeepkusingh
Mar 23 2016 14:59
Thanks..
Jacques-Etienne Beaudet
@jebeaudet
Mar 23 2016 14:59
thanks for your answer @spencergibb, I'd have to try but I'm guessing it will be the same behavior if I set the timeouts in the yml no?
Spencer Gibb
@spencergibb
Mar 23 2016 15:00
I’m not sure
Jacques-Etienne Beaudet
@jebeaudet
Mar 23 2016 15:40
Well, couldn't make it work so I ended up coding a new Endpoint that simply invoke SpringClientFactory::destroy() which closes all the context the SpringClientFactory is holding. I've tested it and it seems to be working well. thx again for your input
Richard Santana
@RichardCSantana
Mar 23 2016 18:38
Somebody has an example of using logback.xml served by config-server at an application ? I have to use the property logging.config with the full url of the file at config server(ex. : logging.config":"http://localhost:8888/eureka/default/master/logback.xml) ?
Dave Syer
@dsyer
Mar 23 2016 18:41
That might work. Depends if logback knows how to read a URL
Richard Santana
@RichardCSantana
Mar 23 2016 19:01
Thanks @dsyer it worked with full reference and with parameters