-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring-cloud-tencent规则路由未匹配上不报错问题 #1217
Labels
enhancement
New feature or request
Comments
目前只能在resource/polaris.yml下添加如下配置,来指定降级策略为none。下个版本可以新增sct配置降级策略。 consumer:
serviceRouter:
plugin:
ruleBasedRouter
failoverType: none |
通过配置实现了将failoverType 设置为none,但是当规则未匹配时还是能调用到下级服务; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
服务A访问服务B 配置了规则路由
当时当A访问B时,规则未匹配上,不会报错,会直接去访问从注册中心拿到的实例,我需要如何配置才能实现当配置了路由规则时,调用服务是不符合规则报错或提示未找到服务呢?
我查到的代码如下:
LOG.warn("route rule not match, rule status: {}, not matched source {}", ruleStatus, routeInfo.getSourceService());
RuleBasedRouterFailoverType failoverType = routeInfo.getRuleBasedRouterFailoverType();
if (failoverType == null) {
failoverType = this.routerConfig.getFailoverType();
}
这里failoverType 默认是all
spring-cloud-tencent 中如何设置RuleBasedRouterFailoverType为none 或者如何通过其他方式解决这个问题呢?
The text was updated successfully, but these errors were encountered: