前言
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
- SentinelDashboard sentinel console
无
- SentinelClient sentinel client
无
- 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
- 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
- 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
- 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
- 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=true
removed 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