[Sentinel] Demo of this series of articles (99)

前言

For this series of articles, the code is here
https://gitee.com/xueyedangkong/sentinel-demo.git When
starting, the jvm commands for each service are as follows

  1. SentinelDashboard sentinel console
  2. SentinelClient sentinel client
  3. SentinelDubboUserProvider dubbo server
    -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 server
    -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 Cluster client: 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 Cluster client: 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 Cluster server: 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: The reason why it is -Dcsp.sentinel.log.use.pid=trueremoved here is because it was seen in a previous article that adding the cluster logo will also include the current service when calculating the cluster flow control qps overview. The specific situation requires debugging.

总结

Code to be improved

Guess you like

Origin blog.csdn.net/s1441101265/article/details/107705604