spring-cloud-netflix

How to enable Hystrix DEBUG level logging

别说谁变了你拦得住时间么 提交于 2021-02-20 09:19:41
问题 I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example, hystrix.threadpool.default.maxQueueSize=12 hystrix.threadpool.default.keepAliveTimeMinute=2 hystrix.command.default.execution.isolation.strategy=SEMAPHORE How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging

How to enable Hystrix DEBUG level logging

微笑、不失礼 提交于 2021-02-20 09:19:06
问题 I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example, hystrix.threadpool.default.maxQueueSize=12 hystrix.threadpool.default.keepAliveTimeMinute=2 hystrix.command.default.execution.isolation.strategy=SEMAPHORE How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging

How to manage Feign errors?

徘徊边缘 提交于 2021-02-07 18:18:21
问题 We are using Spring-boot with Spring-cloud and Spring-cloud-netflix with Spring-cloud-feign . We are creating our Gateway application that with the help of Feign will try to communicate with our authentication microservice in order to validate their credentials. Here you can see an example of our Feign authentication client: @FeignClient(value="auth", configuration = AuthClientConfiguration.class) public interface AuthClient { @RequestMapping(method = RequestMethod.GET, value = "/tokens",

Ribbon with Spring Cloud and Eureka java.lang.IllegalStateException: No instances available for localhost

左心房为你撑大大i 提交于 2021-02-07 04:15:45
问题 I am using <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix</artifactId> <version>1.2.3.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> My main class: @SpringBootApplication //@Configuration @ComponentScan(basePackages = "com.mypackage") @EnableAutoConfiguration @EnableEurekaClient @EnableSwagger2 public class App { public static void main( String[] args ) { SpringApplication.run(App.class, args); } @LoadBalanced @Bean(name=

Ribbon with Spring Cloud and Eureka java.lang.IllegalStateException: No instances available for localhost

核能气质少年 提交于 2021-02-07 04:13:28
问题 I am using <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix</artifactId> <version>1.2.3.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> My main class: @SpringBootApplication //@Configuration @ComponentScan(basePackages = "com.mypackage") @EnableAutoConfiguration @EnableEurekaClient @EnableSwagger2 public class App { public static void main( String[] args ) { SpringApplication.run(App.class, args); } @LoadBalanced @Bean(name=

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder

China☆狼群 提交于 2021-01-29 12:39:06
问题 I am learning springboot and microservices. I have created 3 services and all are working fine. Now i have created discovery server, using start.spring.io by adding "Eureka Server" as dependency. My pom.xml is as follows: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0<

Spring - service shuts down after being discovered by eureka server

无人久伴 提交于 2021-01-28 18:09:34
问题 My service "app-name" shuts down unexpectedly right after having started. At that time The eureka server is running on port 8761 The service has been successfully discovered by the eureka server (registration status: 204 , registering application with eureka with status UP ) The discovered app has fully started on port 9100 ( Started <app-name> in 7.427 seconds (JVM running for 7.999 ) If I don't include service discovery the app starts up fine Here is the java implementation //Eureka server

Spring cloud Feign OAuth2 request interceptor is not working

一曲冷凌霜 提交于 2021-01-27 14:52:10
问题 I am trying to create a simple REST client using spring cloud feign to consume a service which is secured with OAuth2 security tokens. I am using OAuth2FeignRequestInterceptor for adding the bearer token, check my below code. I am facing 401. and when try to debug my code I don't find the bearer token in my Request object. @Configuration @EnableConfigurationProperties(value=OAuth2ClientCredentialsProperties.class) @EnableOAuth2Client @Profile(OAuth2Profiles.CLIENT_CREDENTIALS) public class

spring boot cloud eurka windows 10 eurkea returns host.docker.internal for client host name after latest docker upgrade

我的未来我决定 提交于 2021-01-27 06:07:49
问题 Spring Boot Cloud Disovery Question, Problem with Eureka hostname after docker upgrade on windows 10. (Note: docker is not hosting spring services, just mariadb, rabbitmq, and zipkin) Summary I am developing on windows 10 enterpise, latest patch java 8 sts 4 docker to host mariadb, rabbitmq and zipkin (no services run docker) Using spring boot cloud discovery based on Eureka for service discovery Everything worked fine until the docker update today, after the docker upgrade Eureka returns

spring boot cloud eurka windows 10 eurkea returns host.docker.internal for client host name after latest docker upgrade

怎甘沉沦 提交于 2021-01-27 06:07:49
问题 Spring Boot Cloud Disovery Question, Problem with Eureka hostname after docker upgrade on windows 10. (Note: docker is not hosting spring services, just mariadb, rabbitmq, and zipkin) Summary I am developing on windows 10 enterpise, latest patch java 8 sts 4 docker to host mariadb, rabbitmq and zipkin (no services run docker) Using spring boot cloud discovery based on Eureka for service discovery Everything worked fine until the docker update today, after the docker upgrade Eureka returns