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

28th
May 2018
CH4:D
@chad_d_stud_twitter
May 28 2018 01:55
good day. i’ve encountered some inconsistent eureka behavior between a local machine and another one in aws
we only have these keys used:
# Eureka Discovery Client
eureka.instance.hostname=localhost
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:${server.port}/eureka
eureka.dashboard.path=/eurekaweb
eureka.instance.lease-expiration-duration-in-seconds=5
eureka.server.enable-self-preservation=true
if i shutdown services, it deregisters in eureka in just under a minute but on aws it never does. it stays there indefinitely
farshidkeshavarz
@farshidkeshavarz
May 28 2018 12:58

Hi All,

Can someone tell me how I can set up my feign client to use my JKS file to do calls?

I am getting SSL exceptions
I cannot find any official nor useful documentation how to do this..
farshidkeshavarz
@farshidkeshavarz
May 28 2018 14:57
@Bean
public Client feignClient() throws IOException, GeneralSecurityException {
    SSLContext sslContext = new SSLContextBuilder().loadTrustMaterial(trustStoreLocation.getURL(),
            trustStorePassword.toCharArray()).build();
    return new Client.Default(sslContext.getSocketFactory(), new NoopHostnameVerifier());
}
Hugh Hamill
@hughwphamill
May 28 2018 15:55
Hi, is there an 'approved' way to pull the spring cloud sleuth trace id and put it in the logref field of a spring-hateoas VndError object, or is it just get hold of it from the MDC directly?
Sushant
@bsushant-athena
May 28 2018 17:11
hi, what all different ways are available for peer awareness in eureka? Specially if the deployment is in aws . I'm looking from zero downtime deployment view.
Marcin Grzejszczak
@marcingrzejszczak
May 28 2018 19:17

Hi, is there an 'approved' way to pull the spring cloud sleuth trace id and put it in the logref field of a spring-hateoas VndError object, or is it just get hold of it from the MDC directly?

tracer.currentSpan() or tracer.getCurrentSpan() and get trace id

Leo Gutiérrez Ramírez
@leogtzr
May 28 2018 23:02

Hello!
Is there any way to map plain text configuration files to a @Value in the client side?
I am currently able to get my plain text files with an url like this:
http://localhost:8888/config-server-client/native/ng.conf?useDefaultLabel

But I would like to know if there is a way to map plain text file content from the client side just as we normally do for .properties file. Any help will be greatly appreciated.