Scheduled tasks service registration to zookeeper temporary order node configuration

zkservers=172.30.66.43:2181
masterkey=/lmmteam

<Dubbo: Monitor Protocol = "Registry" />
<Dubbo: file application name = "oolp">
<- - Elegant stop disposed Dubbo, timeout for 30 seconds, 10 seconds by default!>
<Dubbo: Parameter Key = "the shutdown .timeout "value =" 30000 "/>
</ Dubbo: file application>
<- IP address registry ->!
<Dubbo: Protocol Registry =" ZooKeeper "address =" $ {zkservers} "/>
<-! ! - & lt; & ndash; annotation packet scan path, a plurality of packages separated by a comma, a scanning pacakge not fill all the classes in the current ApplicationContext ndash &; & gt; ->
<Dubbo: annotation package = "com.lmm.service.impl "/>
<Dubbo: Consumer = Check" to false "retries =" 0 "timeout =" 12000 "/>
<Dubbo: Protocol name =" Dubbo "Port =" 20789 "/>
! <- <Dubbo:provider delay="-1" timeout="6000" retries="0"/>-->
<dubbo:provider timeout="12000" retries="0"/>
@Configuration 
@ImportResource ({ "the CLASSPATH:. Config / * xml"})
public class DubboConfig {
}

for each service node to create a temporary order for the zookeeper, zkLatchClient # 172.30.83.97

Guess you like

Origin www.cnblogs.com/liangmm/p/11648809.html