【sentinel】该系列文章demo(九十九)

前言

该系列文章,代码都在这里
https://gitee.com/xueyedangkong/sentinel-demo.git
启动时各个服务jvm命令如下

  1. SentinelDashboard sentinel控制台
  2. SentinelClient sentinel客户端
  3. SentinelDubboUserProvider dubbo服务端
    -Dahas.namespace=default
    -Dproject.name=sentinel-dubbo-user-provider
    -Dcsp.sentinel.log.use.pid=true
    -Dcsp.sentinel.api.port=8103
    -Dcsp.sentinel.dashboard.server=localhost:8080
  4. SentinelDubboUserProvider02 dubbo服务端
    -Dahas.namespace=default
    -Dproject.name=sentinel-dubbo-user-provider
    -Dcsp.sentinel.log.use.pid=true
    -Dcsp.sentinel.api.port=8104
    -Dcsp.sentinel.dashboard.server=localhost:8080
  5. SentinelDubboUserConsumer 集群客户端:token-client
    -Dahas.namespace=default
    -Dproject.name=sentinel-dubbo-user-consumer
    -Dcsp.sentinel.log.use.pid=true
    -Dcsp.sentinel.dashboard.server=localhost:8080
    -Dcsp.sentinel.api.port=8204
    -Dcsp.sentinel.heartbeat.interval.ms=2000
  6. SentinelDubboUserConsumer02 集群客户端:token-client
    -Dahas.namespace=default
    -Dproject.name=sentinel-dubbo-user-consumer
    -Dcsp.sentinel.log.use.pid=true
    -Dcsp.sentinel.dashboard.server=localhost:8080
    -Dcsp.sentinel.api.port=8205
    -Dcsp.sentinel.heartbeat.interval.ms=2000
  7. SentinelDubboUserConsumer03 集群服务端:token-server
    -Dahas.namespace=default
    -Dproject.name=sentinel-dubbo-user-consumer
    -Dcsp.sentinel.dashboard.server=localhost:8080
    -Dcsp.sentinel.api.port=8206
    -Dcsp.sentinel.heartbeat.interval.ms=2000
    ps:此处之所以把-Dcsp.sentinel.log.use.pid=true去掉,是因为在前面的某篇文章中有看到,加上集群标志,会在计算集群流控qps总览的时候,把当前服务的也算进去。具体情况需要调试。

总结

代码待完善

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值