默认retry多次,tomcat启动超时
Closed this issue · 4 comments
Tom-Goong commented
设置retry重试策略后,“new RetryNTimes(0, 1000)“。。仍然重试连接zookeep了三次,导致应用不能在较短时间内启动。【除了延长启动时间,希望有其他方式处理】。thx
spinlock commented
zk 的连接策略之后会彻底修改掉。很快~
2016年8月15日星期一,Tom-Goong notifications@github.com 写道:
设置retry重试策略后,“new RetryNTimes(0, 1000)“。。仍然重试连接zookeep了三次,
导致应用不能在较短时间内启动。【除了延长启动时间,希望有其他方式处理】。thx—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#25, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsHpfgUKUuMgXjcMpB-qxWt9D6Iv4fVks5qgE5ngaJpZM4JkTwK
.
yangzhe1991 commented
把代码改成异步初始化就好了吧
Tom-Goong commented
@spinlock @yangzhe1991 多谢,就用异步实例化代码吧
spinlock commented
sorry 是 jodis 啊,我以为 codis 了,这俩名字太像了。请忽略我。还纳闷为啥会有 tomcat 的问题。