orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Client unable to communicate with Silo

Open ponsakthi opened this issue 9 years ago • 8 comments

We have an infrastructure with 3 Clients(C1,C2,C3) and 10 Silos(S1,S2,S3......) hosted on Azure Cloud Service. We faced the following issue in one our production environment and we need your help to zero-in on the root cause. When the clients(WebRole) were coming up and when one of the client was trying to call
AzureClient.Initialize(clientConfigurationFile); it ended up with the following exception while trying to connect to one Silo(Say Silo3) Client.Initialize failed with exc --Response did not arrive on time in 00:00:30 for message: Request *cli/15df4d8e@777e8393->S10.91.24.88:30000:242460026TypeManagerId@S00000011 #2: global::Orleans.Runtime.IClusterTypeManager:GetClusterTypeCodeMap(). Target History is: <S10.91.24.88:30000:242460026:TypeManagerId:@S00000011>.Will try again

Later as the message said , the client retried and AzureClient.Initialize method succeeded.

  • However, from then on , neither of the 3 clients were able to make any calls to the problematic silo (Silo 3). All those calls ended up with Response time out exceptions.

  • But Silos were able to communicate among themselves.(eg Silo 3 was able to make calls to Silo4 without any issues).

  • Client.ConnectedGatewayCount was 10 as seen from ClientLogStatistics. Ideally it should have been 9 taking into account , the problematic silo

  • From SiloLogStatistics, I could see Gateway.Received.Current settling down to a stand still number with Delta=0 for every 15 secs cycle.

We did not get any other useful logs on why this happened. Our log settings default to "Info" for LogPrefix="Application" in Silo configuration. What more do you think we should look at to get to the root cause of this connectivity problem?

More over, which logger (Runtime,Messaging,Scheduling) should we change to verbose to get more information of the ongoing problem in future?

ponsakthi avatar Sep 18 '17 08:09 ponsakthi

What version of Orleans is this? Can you share the logs?

sergeybykov avatar Sep 18 '17 15:09 sergeybykov

Orleans Version -> 1.4.1 @sergeybykov : I have sent logs to your mail.

ponsakthi avatar Sep 19 '17 05:09 ponsakthi

I have not looked at the logs, although this has the same symptoms as the issue when there is server clock skew. This was fixed in Orleans 1.4.2 (with PR https://github.com/dotnet/orleans/pull/2922). If the servers are still running, can you verify the time is skewed between them?

jdom avatar Sep 20 '17 20:09 jdom

Was this the cause of the issue? If so, can we close this?

jdom avatar Sep 28 '17 17:09 jdom

We are in process of upgrading to Orleans 1.4.2. Will keep posted here on the update after upgrade.

aloysiustany avatar Oct 05 '17 05:10 aloysiustany

We upgraded to Orleans 1.4.2. But, we again faced the same issue couple of days after the upgrade. Can you please have a look at the logs that @ponsakthi had sent to see if you could help us point to the cause of the issue.

aloysiustany avatar Oct 09 '17 08:10 aloysiustany

I believe this has been resolved offline. Please confirm.

sergeybykov avatar Nov 30 '17 21:11 sergeybykov

Yes @sergeybykov . The issue is resolved after changing Azure CloudService's service configuration to InternalEndpoint from InputEndPoint.

ponsakthi avatar Dec 04 '17 09:12 ponsakthi