-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpContactPointBootstrap always dead after probing timeout #209
Comments
Maybe we can add something timefactor for it, eg what we are using in the testkit? |
Or we can introduce a connect timeout and start the tick after connected |
Which testkit did you mention?
Lines 22 to 29 in 7ed2b5b
|
I mean some kind of factor, any way , send a pr when you have time, I will review it. |
Explain
In the cluster bootstrapping, we will create a child actor for handling HTTP probing, this actor will use the config
probingFailureTimeout
as the deadline time:pekko-management/management-cluster-bootstrap/src/main/scala/org/apache/pekko/management/cluster/bootstrap/internal/HttpContactPointBootstrap.scala
Lines 99 to 103 in 7ed2b5b
At the same time, we are using the same configuration
probingFailureTimeout
as probing future timeout too.pekko-management/management-cluster-bootstrap/src/main/scala/org/apache/pekko/management/cluster/bootstrap/internal/HttpContactPointBootstrap.scala
Lines 113 to 116 in 7ed2b5b
There is only one way to handle these timeouts and deadlines, As you can see, because of the existence of a deadline, the
else
logic will never be executed.pekko-management/management-cluster-bootstrap/src/main/scala/org/apache/pekko/management/cluster/bootstrap/internal/HttpContactPointBootstrap.scala
Lines 118 to 127 in 7ed2b5b
Discuss
I think we may need two configurations for deadline and timeout. In such cases, when there is network latency for the contact point node, the
HttpContactPointBootstrap
actor does not need to be frequently destroyed and created. At least we have some buffer time.wdyt @pjfanning @He-Pin @mdedetrich @samueleresca
The text was updated successfully, but these errors were encountered: