Coder Social home page Coder Social logo

Comments (4)

SkyeBeFreeman avatar SkyeBeFreeman commented on June 15, 2024

目前只能在resource/polaris.yml下添加如下配置,来指定降级策略为none。下个版本可以新增sct配置降级策略。

consumer:
  serviceRouter:
    plugin:
      ruleBasedRouter
        failoverType: none

from spring-cloud-tencent.

relaxXiaoLuo avatar relaxXiaoLuo commented on June 15, 2024

目前只能在resource/polaris.yml下添加如下配置,来指定降级策略为none。下个版本可以新增sct配置降级策略。

consumer:
  serviceRouter:
    plugin:
      ruleBasedRouter
        failoverType: none

通过配置实现了将failoverType 设置为none,但是当规则未匹配时还是能调用到下级服务;
我现在遇到的情况就是规则没有匹配上,还是能正确的调用到被调服务;
如何设置当配置了A访问B的路由规则时,规则未匹配上时,返回报错呢 ?

from spring-cloud-tencent.

SkyeBeFreeman avatar SkyeBeFreeman commented on June 15, 2024

看了一下代码,仅仅修改降级策略不够,sct的代码也有需要修改的地方。可以在下个版本提供这个功能。如有兴趣,您可以参与开源共建。目前设置了降级策略,但还是返回实例列表的地方的处理在这里:
image

from spring-cloud-tencent.

relaxXiaoLuo avatar relaxXiaoLuo commented on June 15, 2024

看了一下代码,仅仅修改降级策略不够,sct的代码也有需要修改的地方。可以在下个版本提供这个功能。如有兴趣,您可以参与开源共建。目前设置了降级策略,但还是返回实例列表的地方的处理在这里: image

好的,自己闲余时间才接触SCT,我先了解了解 谢谢。

from spring-cloud-tencent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.