When following the book walkthrough, when scaling to 0 pods the hello-microservice to open the circuit and later rescale to 1 pod to see the circuit closed again, it won't close as the Service Discovery code won't execute, so it wouldn't find the new pod. Some code has to be attached to the halfOpenHandler to re-discover the service.
When following the book walkthrough, when scaling to 0 pods the hello-microservice to open the circuit and later rescale to 1 pod to see the circuit closed again, it won't close as the Service Discovery code won't execute, so it wouldn't find the new pod. Some code has to be attached to the halfOpenHandler to re-discover the service.