You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ZY945 (via GitHub)" <gi...@apache.org> on 2023/04/20 02:41:03 UTC

[GitHub] [dubbo-samples] ZY945 opened a new issue, #828: Create zookeeper service discovery failed.

ZY945 opened a new issue, #828:
URL: https://github.com/apache/dubbo-samples/issues/828

   url:[https://github.com/apache/dubbo-samples/blob/2203dcf115c4f9bdb73ed747aebc8c91f40ca101/1-basic/dubbo-samples-spring-boot]
   
   ### Problems:
   When Zookeeper is deployed on a server, the connection times out causing the connection to fail
   The error is reported as follows:
     
   ![image](https://user-images.githubusercontent.com/74083801/233241929-97631ce5-c41c-41a5-8db2-5a3e48e429cf.png)
   ![image](https://user-images.githubusercontent.com/74083801/233241963-9eb31065-c5a0-49f3-98e2-a556d80ee090.png)
   ### 
   Increase the timeout period appropriately
   `zookeeper://${zookeeper.address:127.0.0.1}:2181?blockUntilConnectedWait=100000&timeout=100000`
   ![image](https://user-images.githubusercontent.com/74083801/233243360-8d4ef8c8-8743-4851-b628-68a882eb0b9c.png)
   
   ### conclusion:
   It was eventually discovered that the problem was caused by a timeout,The default timeout period is 30s
   In some cases, using the server zookeeper connection can be slower
   ![image](https://user-images.githubusercontent.com/74083801/233242810-1f86d529-e85e-4ab0-9a54-180c48b3a7af.png)
   ![image](https://user-images.githubusercontent.com/74083801/233242887-fe253a9b-b5f0-4cad-82d7-66c38cfb3245.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] ZY945 commented on issue #828: Create zookeeper service discovery failed.

Posted by "ZY945 (via GitHub)" <gi...@apache.org>.
ZY945 commented on issue #828:
URL: https://github.com/apache/dubbo-samples/issues/828#issuecomment-1515971509

   I was deploying zookeeper with docker on the server, connecting locally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] ZY945 commented on issue #828: Create zookeeper service discovery failed.

Posted by "ZY945 (via GitHub)" <gi...@apache.org>.
ZY945 commented on issue #828:
URL: https://github.com/apache/dubbo-samples/issues/828#issuecomment-1515998066

   After adding this to the URL, it was connected, but it didn't feel like it took too long
   `?blockUntilConnectedWait=100000&timeout=100000`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] AlbumenJ commented on issue #828: Create zookeeper service discovery failed.

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #828:
URL: https://github.com/apache/dubbo-samples/issues/828#issuecomment-1515958130

   Do you mean that you zk connection is by timout, not server not started?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] ZY945 commented on issue #828: Create zookeeper service discovery failed.

Posted by "ZY945 (via GitHub)" <gi...@apache.org>.
ZY945 commented on issue #828:
URL: https://github.com/apache/dubbo-samples/issues/828#issuecomment-1515969251

   Yes, this may be a problem with my server, but I have very little research on the Internet. so I want to provide this, which may be a solution to the problem and easy to ignore.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] ZY945 closed issue #828: Create zookeeper service discovery failed.

Posted by "ZY945 (via GitHub)" <gi...@apache.org>.
ZY945 closed issue #828: Create zookeeper service discovery failed.
URL: https://github.com/apache/dubbo-samples/issues/828


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org