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

31st
Aug 2016
12010994
@12010994
Aug 31 2016 09:43
Hello! Is there a simple way to disable/hide the eureka "gauge.servo.eurekaclient.transport.currentsessionduration" from my /metrics endpoint ? Or maybe change from 'ms' to some biggest unit because my charts gets polluted
Florian Garcia
@ImFlog
Aug 31 2016 14:53
Hello I have an issue with zuul, I recently upgraded my version and all my settings (timeout etc) are not working anymore. I found that all my command are suffixed with "RibbonCommand". I quick fixed by changing my properties but the Hystrix dashboard is not really readable.
The involved code seems to be
return Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RibbonCommand")) .andCommandKey(HystrixCommandKey.Factory.asKey(commandKey + "RibbonCommand")) .andCommandPropertiesDefaults(setter);
In spring-cloud-netflix AbstractRibbonCommand.java
Do you know why we add this ?
Spencer Gibb
@spencergibb
Aug 31 2016 15:04
@gpradeepkrishna added comments
@garciafl upgraded from what version to what version?
Florian Garcia
@ImFlog
Aug 31 2016 16:08
Think it was from Brixton-release to Brixton-SR4
Spencer Gibb
@spencergibb
Aug 31 2016 16:08
then the suffix was always there.
Florian Garcia
@ImFlog
Aug 31 2016 16:08
That's strange
suddently the suffix appears in my hystrix dashboard and I need to specify it in the properties
Any reason for this suffix ?
To specify that it uses Ribbon ?
Spencer Gibb
@spencergibb
Aug 31 2016 16:12
it’s historical as far as I can remember.
Florian Garcia
@ImFlog
Aug 31 2016 16:13
I came across this spring-cloud/spring-cloud-netflix#329
and this
spring-cloud/spring-cloud-netflix#321
Looks exactly like my issue but kinda old :)
Spencer Gibb
@spencergibb
Aug 31 2016 16:17
329 the user was trying without the suffix pre Brixton and the suffix is needed.
hmm
actually looks like it was fixed and there was a regression
open an issue will you?
Florian Garcia
@ImFlog
Aug 31 2016 16:19
Yes no problem
Want me to try to fix it ?
Spencer Gibb
@spencergibb
Aug 31 2016 16:21
if you’d like. Link to #329. Work off of the 1.1.x branch with a test for Brixton.
bakabo
@bakabo
Aug 31 2016 16:23
is it possible to merge 2 apps to 1 app in dataflow, i.e. 2 sources -> 1 processor
Spencer Gibb
@spencergibb
Aug 31 2016 16:27
@markpollack @sabbyanandan :arrow_up:
bakabo
@bakabo
Aug 31 2016 16:27
i imagine it would look like 2 sources -> some kafka topic -> process?
Florian Garcia
@ImFlog
Aug 31 2016 16:30
@spencergibb spring-cloud/spring-cloud-netflix#1308
Tell me if you want me to ellaborate a bit
Spencer Gibb
@spencergibb
Aug 31 2016 16:33
the ribbon command you linked to is from the 1.0.x branch. The fix was on the 1.1.x branch as well as the regression.
Are you going to try a PR?
Florian Garcia
@ImFlog
Aug 31 2016 16:33
Will change that
Yes I will
Spencer Gibb
@spencergibb
Aug 31 2016 16:41
awesome
bitsofinfo
@bitsofinfo
Aug 31 2016 17:39
anyone else ever get this w/ feign/ribbon out of the box w/ spring cloud? ERROR ProtocolException: Invalid HTTP method: PATCH (1ms)
Spencer Gibb
@spencergibb
Aug 31 2016 17:40
the ribbon http client doesn’t support patch
bitsofinfo
@bitsofinfo
Aug 31 2016 17:40
sigh... so is this configurable to change the client it uses?
Spencer Gibb
@spencergibb
Aug 31 2016 17:40
which is one of the reasons we’re moving away from it
yes
what version are you using? and is the error coming from feign directly?
bitsofinfo
@bitsofinfo
Aug 31 2016 17:41
brixton sr5
feign Client ~ convertAndSend method
on connection.setRequestMethod(request.method());
well the Default Client impl
Spencer Gibb
@spencergibb
Aug 31 2016 17:43
oh, right, by default feign uses HttpUrlConnection...
which doesn’t support patch
Just add com.netflix.feign:feign-httpclient dependency.
in Camden that would be io.github.openfeign:feign-httpclient
bitsofinfo
@bitsofinfo
Aug 31 2016 17:46
k, let me try that
Florian Garcia
@ImFlog
Aug 31 2016 17:51
@spencergibb I think the issue with RibbonCommand is not present in 1.1.x
so it’s not consistent
Florian Garcia
@ImFlog
Aug 31 2016 17:53
Ho yeah you are right
bitsofinfo
@bitsofinfo
Aug 31 2016 17:54
@spencergibb ok, that might work, but now back to this old standby ERROR SSLPeerUnverifiedException: Host name '192.168.0.116' does not match the certificate subject provided by the peer using apache
looking into it
thankfully fiegn ApacheHttpClient takes a pre-made client i can tweak
eemike07
@eemike07
Aug 31 2016 18:01
Hi all, is there a Spring-Cloud-Dataflow room? Or is this the place to be for it?
Spencer Gibb
@spencergibb
Aug 31 2016 18:06
I think this is it. Some of the s-c-df devs hang out here
eemike07
@eemike07
Aug 31 2016 18:14
Thanks @spencergibb , guess I'll post my question here - For SCDF, I know that HDFS has been provided as a sink. Is there anything wrong with me creating a HDFS processor which will then trigger a sink to ingest data that sits in HDFS? Only asking for a good approach from design perspective. - I'm debating to have either processor app or create a stand-a-lone spring boot application that will listen for HDFS being populated to ingest into my Accumulo DB.
Glenn Renfro
@cppwfs
Aug 31 2016 18:55
In this case it sounds like you would want to execute a task to migrate data from hdfs to the DB. Much like the jdbchdfs task but in reverse. You could look at creating a task (to migrate the data from hdfs to db) http://docs.spring.io/spring-cloud-task/1.0.2.RELEASE/reference/htmlsingle/#getting-started. Then launch it using the triggertask source: http://docs.spring.io/spring-cloud-dataflow/docs/1.0.1.BUILD-SNAPSHOT/reference/htmlsingle/#_triggertask.
For now we only support the task-launcher-local. But adding ones for CloudFoundry, Kubernetes, Mesos, Yarn are on the backlog.
eemike07
@eemike07
Aug 31 2016 19:39
@cppwfs Thanks for the response!!! Looks like Spring Task is the right way for me to go. Will need to eventually support cloud foundry.
Robert Van Voorhees
@voor
Aug 31 2016 19:59
Does anyone have any general rules of thumb and/or tips for ways to reduce the number of forwarding errors that Zuul produces along the lines of Load balancer does not have available server for client: [insert client id here]
I'm just using a very generic, not modified much Zuul https://github.com/SMARTRACTECHNOLOGY/smartcosmos-gateway yet whenever I rapid fire on it, I'll get that response. If I fire again, no problem, seems like ~5% or so of the calls get dropped on the floor.
I am on Brixton.SR4
Florian Garcia
@ImFlog
Aug 31 2016 21:00
@spencergibb I have created the PRs for the RibbonCommand suffix : spring-cloud/spring-cloud-netflix#1308
Spencer Gibb
@spencergibb
Aug 31 2016 21:26
:+1:
Florian Garcia
@ImFlog
Aug 31 2016 21:36
Some work to do on master branch
Florian Garcia
@ImFlog
Aug 31 2016 21:44
Will check the circleci error tomorrow, the test runs well in local