You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "lixiaojiee (GitHub)" <gi...@apache.org> on 2018/12/16 12:47:57 UTC

[GitHub] [incubator-dubbo] lixiaojiee commented on issue #2972: 基于zk的注册中心,如果provider在zk上面丢失,那么provider无法感知、consumer无法消费,导致服务不可用

> 那dubbo服务禁用是怎么实现的?是不是通过删除zk上的服务数据?

the provider’s url has a parameter called ‘enabled’, After this parameter is stetted to false, and the registry will notify the client. When the client resolves the url, it will filter out the url with this property, so as to disable the service

provider的url里面有一个属性enabled,默认情况下为true,可以设置enabled=false,设置过后,注册中心会通知客户端,客户端在解析该url的时候就会把具有该属性的url过滤掉,这样就可以达到禁用服务的目的

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2972 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org