Zookeeper 保存的Dubbo信息详解

更多Dubbo的知识访问 www.itkc8.com

Consumers:
/dubbo/com.example.dubbo.service.CityService/consumers/consumer://192.168.198.1/com.example.dubbo.service.CityService?application=consumer&category=consumers&check=false&dubbo=2.5.3&interface=com.example.dubbo.service.CityService&methods=findCityByName&pid=1976&side=consumer&timestamp=1547599528693

application:应用名

category:类型

check:检查

dubbo:dubbo版本

interface:接口名称

methods:接口方法名

pid:进程号

side:消费端或服务端

timestamp:时间戳

Providers
/dubbo/com.example.dubbo.service.CityService/providers/dubbo://192.168.198.1:20880/com.example.dubbo.service.CityService?anyhost=true&application=provider&dubbo=2.5.3&interface=com.example.dubbo.service.CityService&methods=findCityByName&pid=17608&side=provider&timestamp=1547599515151

anyhost:

application:应用名

dubbo:dubbo版本

interface:接口名称

methods:接口方法名

pid:进程号

side:消费端或服务端

timestamp:时间戳

Routers
配置路由规则

/dubbo/com.example.dubbo.service.CityService/routers/route://0.0.0.0/com.example.dubbo.service.CityService?category=routers&dynamic=false&enabled=true&force=false&name=cityservice&priority=10&router=condition&rule=method+=+findCityByName+&+consumer.host+=+192.168.198.1+=>+provider.port+=+20881+&+provider.port+!=+20880&runtime=false

Category:类型

Dynamic:是否动态调整,false表示需要手动调整

Enabled:是否启动

Force:是否强制,false表示,如果没有匹配到则调用其它可调用的服务

Name:路由名称

Priority:优先级

Router:condition符合条件则路由

Rule:路由规则

访问控制

禁止

/dubbo/com.example.dubbo.service.CityService/routers/route://0.0.0.0/com.example.dubbo.service.CityService?category=routers&dynamic=false&enabled=true&force=true&name=com.example.dubbo.service.CityService+blackwhitelist&priority=0&router=condition&rule=consumer.host=192.168.198.1=>false&runtime=false

Category:类型

Dynamic:是否动态调整,false表示需要手动调整

Enabled:是否启动

Force:是否强制

Name:接口名称

Priority:优先级

Router:condition符合条件则路由

Rule:路由规则IP为192.168.198.1的消费者禁止访问

Configrators
负载均衡

/dubbo/com.example.dubbo.service.CityService/configurators/override://0.0.0.0/com.example.dubbo.service.CityService?category=configurators&dynamic=false&enabled=true&loadbalance=random

Category:类型

Dynamic:是否动态调整,false表示需要手动调整

Enabled:是否启动

Loadbalance:负载均衡策略

权重

/dubbo/com.example.dubbo.service.CityService/configurators/override://192.168.198.1:20880/com.example.dubbo.service.CityService?category=configurators&dynamic=false&enabled=true&weight=200

Category:类型

Dynamic:是否动态调整,false表示需要手动调整

Enabled:是否启动

Weight:权重
--------------------- 

原文:https://blog.csdn.net/robin90814/article/details/86523502 
更多Dubbo的知识访问 www.itkc8.com

猜你喜欢

转载自blog.csdn.net/HUXU981598436/article/details/88952032