These are chat archives for alibaba/dubbo

16th
Jan 2018
时无两丶
@carryxyh
Jan 16 2018 01:36 UTC
@chickenlj ok,thx
ken.lj
@chickenlj
Jan 16 2018 02:14 UTC
@konglz use this one zookeeper://192.168.0.101:2181?backup=192.168.0.102:2181,192.168.0.103:2181;
maroon
@DocEcho
Jan 16 2018 02:16 UTC
用 ip 不合理吧,如果 zk 节点 ip 变了,所有应用都得改配置吧
ken.lj
@chickenlj
Jan 16 2018 02:16 UTC
@gaolongyin Did you use Dubbo API? Cache ReferenceConfig instances for performance reasons.
vwyuheng
@vwyuheng
Jan 16 2018 02:20 UTC
现在不是都有配置中心吗
应该没啥问题
konglz
@konglz
Jan 16 2018 02:34 UTC
想请教下各位关于限制api调用速度的问题,比如我有个API每分钟只允许被调用4000次,咱们dubbo有提供分布式限速器吗?
maroon
@DocEcho
Jan 16 2018 02:34 UTC
dubbo 目前的限流 应该都是 针对 单提供者的
konglz
@konglz
Jan 16 2018 02:34 UTC
或者,网上有比较成熟的限速方案吗?我看有基于redis的incr指令的方案,但没有实现好的,自己写觉得短时间搞不定
guava有限速器,是一个单机版的
哦,是哪个API呀?
maroon
@DocEcho
Jan 16 2018 02:36 UTC
tpslimitFilter 和 executelimitFilter 你选择一个吧
konglz
@konglz
Jan 16 2018 02:36 UTC
嗯嗯
感谢
有没有分布式的限速器啊,我在github上找了一圈,没找到太好的
大多有很深的上下文,或者跟特定的redis client(例如jedis)深度耦合
pesean
@pesean
Jan 16 2018 02:46 UTC
Hello,,dubbo有没有广播消息的策略啊。就是单个consumer可以给所有的provider发一个消息
pesean
@pesean
Jan 16 2018 02:52 UTC
thanks,,我试一下
gaolongyin
@gaolongyin
Jan 16 2018 04:52 UTC
ListableBeanFactory:1380 Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registerServiceFacade': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.config.ConsumerConfig': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'parameters' threw exception; nested exception is java.lang.IllegalStateException: Invalid timeout="${dubbo.provider.timeout}" contain illegal charactor, only digit, letter, '-', '_' and '.' is legal.
这个是什么问题,配置好像无法正常解析
<dubbo:provider>
<dubbo:parameter key="timeout" value="${dubbo.provider.timeout}" />
</dubbo:provider>
<dubbo:consumer>
   <dubbo:parameter key="timeout" value="${dubbo.provider.timeout}" />
   <dubbo:parameter key="connect.timeout" value="${dubbo.provider.timeout}" />
   <!-- <dubbo:parameter key="timeout" value="10000" />
   <dubbo:parameter key="connect.timeout" value="10000" /> -->
</dubbo:consumer>
Ian Luo
@beiwei30
Jan 16 2018 06:10 UTC
@gaolongyin ${dubbo.provider.timeout} is placeholder, you need to make sure whatever placeholder machanism takes affect
Luonero
@Luonero
Jan 16 2018 12:39 UTC
filter 可以配置多个吗?
hello ?
done ,THX, @ALL
时无两丶
@carryxyh
Jan 16 2018 12:43 UTC
可以。逗号分开就行了。