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

13th
Apr 2018
CH4:D
@chad_d_stud_twitter
Apr 13 2018 02:12
John, what are you trying to accomplish? I had this working earlier this week.
it was relatively painless XD
CH4:D
@chad_d_stud_twitter
Apr 13 2018 03:01
@jdgiotta
assuming you already have the keys and host data in your ~/.ssh
spring.cloud.config.server.git.uri=ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/my-repo
spring.cloud.config.server.git.passphrase=mypassphrase
Tommy Ludwig
@shakuzen
Apr 13 2018 04:38
@spencergibb thank you for the quick turnaround on spring-cloud/spring-cloud-config#975. I have one more follow-up issue :) next it looks like the TransportConfiguration needs to be updated to be aware of git repos in the composite. I’ll open an issue
CH4:D
@chad_d_stud_twitter
Apr 13 2018 04:39
@dsyer The RefreshScope suggestion worked. I just needed to add it to the controller and not the Main Class. Thanks a bunch.
CH4:D
@chad_d_stud_twitter
Apr 13 2018 05:18
image.png
why does that keep coming up?
BenEfrati
@BenEfrati
Apr 13 2018 07:38
Hi,
After https://github.com/Netflix/eureka/pull/943/ it now possible to use custom SSL context with DiscoveryServiceOptionalArgs, but there is no option to use custom SSL context on JerseyReplicationClient which builds inside RefreshablePeerEurekaNodes https://github.com/Netflix/eureka/blob/master/eureka-core/src/main/java/com/netflix/eureka/cluster/PeerEurekaNodes.java#L199
is there any workaround to use custom ssl context unless set system properties?
CH4:D
@chad_d_stud_twitter
Apr 13 2018 08:26
image.png
then returns to zero after it reaches the max. is this normal?
i noticed that the current-memory-usage gradually increases after every refresh
Carlos Barragan
@carlosbarragan
Apr 13 2018 08:27
@spencergibb Thanks for the answer. Using the reactive webClient with the (Hystrix) THREAD strategy could be kind of wasteful, couldn’t it? You are switching to a thread that you are not going to block anyway. It seems to me that is unnecessary context switching. Maybe there sould be something like ReactiveHystrixCommand
dharezlak
@dharezlak
Apr 13 2018 11:13
Hello. I have a Spring Boot app version 2.0.1.RELEASE. It looks like having a spring-boot-starter-parent as the parent of my project does not set the versions for cloud-related projects (I ma using spring-cloud-starter-gateway). On the gateway's page example maven script the dependencies are managed by a separate spring-cloud-dependencies entry. The question is which version of the spring-cloud-dependencies project should I use for Boot 2.0.1.RELEASE?
And is this going to always be the case that Boot and Cloud related project versions will be managed separately?
dharezlak
@dharezlak
Apr 13 2018 12:45
OK, I got to the part at the end of the page where this is explained (http://projects.spring.io/spring-cloud/). So I can use Spring Boot parent and cloud's BOM to mange the dependencies but not the other way around.
dharezlak
@dharezlak
Apr 13 2018 12:55
One problem when mixing Spring Boot 2.0.1 and Spring Cloud Gateway for the Finchley.M9 train are the missing properties from application.properties file during processing of environment post processors. Could this be related to http://cloud.spring.io/spring-cloud-static/Finchley.M9/single/spring-cloud.html#customizing-bootstrap-properties ?
Simply, when listing the property sources in the environment post processor the following are missing in Finchley.M9 compared to Finchley.M6:
OriginTrackedMapPropertySource {name='applicationConfig: [classpath:/config/application.properties]'}
OriginTrackedMapPropertySource {name='applicationConfig: [classpath:/application.properties]'}
CH4:D
@chad_d_stud_twitter
Apr 13 2018 13:00
I have a clarification for this https://spring.io/blog/2015/01/20/microservice-registration-and-discovery-with-spring-cloud-and-netflix-s-eureka
Do I understand this correctly? FeignClientExample already has load balancing support under the hood? No additional config necessary?
John D Giotta
@jdgiotta
Apr 13 2018 13:06
@chad_d_stud_twitter can you elaborate with "assuming you already have the keys and host data in your ~/.ssh" I'm not seeing any documentation on what needs to be in the directory. Plus what is you're running as root in a docker container. I'd assume /root/.ssh/ would suffice.
CH4:D
@chad_d_stud_twitter
Apr 13 2018 13:13
github and aws has documentation on how to generate keys to be able to use the ssh connection with them. Ultimately they wind up in your ~/.ssh folder
i've already been using AWS CodeCommit for some time so I didn't need to do that. I only added those property values to my spring cloud config server
John D Giotta
@jdgiotta
Apr 13 2018 14:56
@chad_d_stud_twitter All I ever get is AUTHFAIL
I'm even including the private key in the yaml config
CH4:D
@chad_d_stud_twitter
Apr 13 2018 15:46
Would help if you showed us your application yml file
If you’re having trouble getting it to pick up your ssh keys try generating a new one to register to the repo of your choice
I always for the bare minimum config when starting out with a spring project
Spencer Gibb
@spencergibb
Apr 13 2018 19:35
@carlosbarragan look at the HystrixCommands class
@chad_d_stud_twitter feign uses ribbon under the covers