Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: visits-service scale down to one, not zero (#103)
## Purpose If `visits-service` scales down to zero, we will meet the error `503 Service Unavailable` when calling it via api-gateway. This is because that the spring cloud gateway internally use Eureka Service Discovery to discover the instance. When scaled to zero, it will be considered as no such instance. ## Does this introduce a breaking change? <!-- Mark one with an "x". --> ``` [ ] Yes [ ] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? <!-- Please check the one that applies to this PR using "x". --> ``` [ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test * Get the code ``` git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install ``` * Test the code <!-- Add steps to run the tests suite and/or manually test --> ``` ``` ## What to Check Verify that the following are valid * ... ## Other Information <!-- Add any other helpful information that may be needed here. --> Co-authored-by: Hao Zhang <[email protected]>
- Loading branch information