Comments (4)
目前只能在resource/polaris.yml下添加如下配置,来指定降级策略为none。下个版本可以新增sct配置降级策略。
consumer:
serviceRouter:
plugin:
ruleBasedRouter
failoverType: none
from spring-cloud-tencent.
目前只能在resource/polaris.yml下添加如下配置,来指定降级策略为none。下个版本可以新增sct配置降级策略。
consumer: serviceRouter: plugin: ruleBasedRouter failoverType: none
通过配置实现了将failoverType 设置为none,但是当规则未匹配时还是能调用到下级服务;
我现在遇到的情况就是规则没有匹配上,还是能正确的调用到被调服务;
如何设置当配置了A访问B的路由规则时,规则未匹配上时,返回报错呢 ?
from spring-cloud-tencent.
看了一下代码,仅仅修改降级策略不够,sct的代码也有需要修改的地方。可以在下个版本提供这个功能。如有兴趣,您可以参与开源共建。目前设置了降级策略,但还是返回实例列表的地方的处理在这里:
from spring-cloud-tencent.
看了一下代码,仅仅修改降级策略不够,sct的代码也有需要修改的地方。可以在下个版本提供这个功能。如有兴趣,您可以参与开源共建。目前设置了降级策略,但还是返回实例列表的地方的处理在这里:
好的,自己闲余时间才接触SCT,我先了解了解 谢谢。
from spring-cloud-tencent.
Related Issues (20)
- 北极星自定义规则顺序不生效
- spring-cloud-tencent元数据管理与polaris-java公共能力合并
- 支持服务灰度发布
- spring boot 3 服务关闭时反注册失败! HOT 13
- 期望支持spring cloud 2023 HOT 1
- 支持零实例保护
- 开启优雅下线后,反注册失败
- 如果使用EnvironmentPostProcessor配置字段为null,启动会报错 HOT 1
- polaris-java 1.15.0 版本有重大bug,会导致监听服务实例变化不生效 HOT 2
- Jackson版本导致引入cloud-tencent依赖后无法启动问题 HOT 5
- 对于 swagger OpenAPI 的配置是否可以扩展让用户自定义在配置文件中 HOT 1
- 使用cloud-tencent,服务间grpc无法通讯问题 HOT 2
- spring-cloud-tencent 是否有计划能接入dubbo实现自动注册 HOT 5
- 用polaris替换奈飞的过程中gateway无法启动 HOT 8
- H版本的SCT中,如果引入了熔断组件,没有添加feign.hystrix.enabled: true,feign调用会报空指针异常
- SCT缺少配置可以指定就近路由的级别
- 自定义Prometheus拉取客户端的端口号失效 HOT 14
- jacoco升级到0.8.12版本
- 配置中心,动态刷新能力只有在第一次修改配置时触发 HOT 3
- 支持连接Consul配置中心
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-tencent.