GithubHelp home page GithubHelp logo

dubbo3.0-sentinel's Introduction

dubbo3.0-sentinel

整合dubbo3.0和sentinel,并给出sentinel的限流和熔断例子

觉得有用的朋友请帮忙点个♥♥♥star♥♥♥

一、linux环境下载sentinel

wget https://github.com/alibaba/Sentinel/releases/download/1.8.4/sentinel-dashboard-1.8.4.jar

二、启动sentinel

java -jar sentinel-dashboard-1.8.4.jar --server.port=8010 --auth.username=sentinel --auth.password=sentinel &

三、访问sentinel,ip换成实际的

地址 http://127.0.0.1:8010/#/login

账号/密码 sentinel/sentinel

四、启动dubbo3.0-sentinel项目

1、启动DubboProviderApplication

2、启动DubboConsumerApplication

注意:dubbo.registry.address = zookeeper://192.168.240.132:2181

ip换成实际的地址

五、分别调用限流和熔断接口一次

调用链接如下:

限流:http://127.0.0.1:9091/useExecutes/beyond

熔断:http://127.0.0.1:9091/useFuse/beyond

注意:只有调用过后服务才能在sentinel页面上看到 image

六、分别设置限流和熔断规则 image

七、查看设置好的限流和熔断规则 image image

八、疯狂调用限流和熔断服务,查看限流和熔断结果 调用链接如下:

限流:http://127.0.0.1:9091/useExecutes/beyond

熔断:http://127.0.0.1:9091/useFuse/beyond

image

dubbo3.0-sentinel's People

Contributors

beyond688 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sedricdhyh

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.