You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-discovery/src/test/java/org/springframework/cloud/kubernetes/discovery/KubernetesDiscoveryClientConfigClientBootstrapConfigurationTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ public void onWhenRequested() throws Exception {
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-examples/kubernetes-circuitbreaker-ribbon-example/greeting-service/src/main/java/org/springframework/cloud/kubernetes/examples/NameService.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public NameService(RestTemplate restTemplate) {
40
40
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1000") })
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-examples/kubernetes-circuitbreaker-ribbon-example/readme.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Kubernetes Circuit Breaker & Load Balancer Example
2
2
3
-
This example demonstrates how to use [Hystrix circuit breaker](https://martinfowler.com/bliki/CircuitBreaker.html) and the [Ribbon Load Balancing](http://microservices.io/patterns/client-side-discovery.html). The circuit breaker which is backed with Ribbon will check regularly if the target service is still alive. If this is not loner the case, then a fall back process will be excuted. In our case, the REST `greeting service` which is calling the `name Service` responsible to generate the response message will reply a "fallback message" to the client if the `name service` is not longer replying.
3
+
This example demonstrates how to use [Hystrix circuit breaker](https://martinfowler.com/bliki/CircuitBreaker.html) and the [Ribbon Load Balancing](https://microservices.io/patterns/client-side-discovery.html). The circuit breaker which is backed with Ribbon will check regularly if the target service is still alive. If this is not loner the case, then a fall back process will be excuted. In our case, the REST `greeting service` which is calling the `name Service` responsible to generate the response message will reply a "fallback message" to the client if the `name service` is not longer replying.
4
4
As the Ribbon Kubernetes client is configured within this example, it will fetch from the Kubernetes API Server, the list of the endpoints available for the name service and loadbalance the request between the IP addresses available
5
5
6
6
### Running the example
@@ -39,7 +39,7 @@ minikube service --url greeting-service
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-integration-tests/discovery/tests/src/test/java/org/springframework/cloud/kubernetes/it/ServicesIT.java
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-integration-tests/istio/src/test/java/org/springframework/cloud/kubernetes/it/ProfilesIT.java
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-integration-tests/simple-configmap/src/test/java/org/springframework/cloud/kubernetes/it/GreetingIT.java
Copy file name to clipboardexpand all lines: spring-cloud-kubernetes-integration-tests/simple-core/src/test/java/org/springframework/cloud/kubernetes/it/GreetingAndHealthIT.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ public class GreetingAndHealthIT {
0 commit comments