orleans icon indicating copy to clipboard operation
orleans copied to clipboard

[Question] Running beta 3 on azure worker role

Open miker1423 opened this issue 8 years ago • 16 comments

Hello! I'm trying the latest beta of 2.0.0 on a azure worker role, but I can not even start the silo, the error thrown is the next one

OrleansMessageRejectionException: Silo S10.43.44.207:54629:256167661 is rejecting message: Request S10.43.44.207:0:256167661???/00000013@S00000013->S10.43.44.207:0:256167661???/dc13e0a2@Sdc13e0a2 #5: global::Orleans.Streams.IPersistentStreamPullingManager:Initialize(). Reason = Recent (00:00:00.7408936 ago, at 2018-02-12 21:41:16.135 GMT) connection failure trying to reach target silo S10.43.44.207:0:256167661. Going to drop Request msg 5 without sending. CONNECTION_RETRY_DELAY = 00:00:01.

and the configuration I'm using the next config

var config = AzureSilo.DefaultConfiguration();
config.AddAzureTableStorageProvider();
config.AddAzureQueueStreamProviderV2("StreamProvider");
config.AddMemoryStorageProvider("PubSubStore");
config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.AzureTable;

miker1423 avatar Feb 13 '18 04:02 miker1423

Hi @miker1423

I noticed you haven't configure any Azure connection string, for AzureTableStorageProvidfer , or the other Azure stuff. Is it you haven't configured, or you just didn't post them?

And do you see other Error or Warning logs prior to the one you posted?

xiazen avatar Feb 14 '18 21:02 xiazen

Well, this is a project which was running on the previews version (1.5.4), so I just upgraded the packages, changed how the silo is been built, since I can run the same sample with out specifying the connection string on version 1.5.4, I thought it was not needed now, but, I can try specifying it, I'll post my results here.

miker1423 avatar Feb 14 '18 21:02 miker1423

After adding the connection string, the configuration looks as follows

var connectionString = RoleEnvironment.GetConfigurationSettingValue("DataConnectionString");
var config = AzureSilo.DefaultConfiguration();
config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.Disabled;
config.AddAzureTableStorageProvider(connectionString: connectionString);
config.AddAzureQueueStreamProviderV2("StreamProvider", connectionString: connectionString);
config.AddMemoryStorageProvider("PubSubStore");

But the exception is still been thrown, it is the same exception and no other thing on the log, except for the stack trace

miker1423 avatar Feb 14 '18 22:02 miker1423

this seems bad. Let me investigate in my end . will get back to you. Thanks for reporting !

xiazen avatar Feb 20 '18 18:02 xiazen

Hello, forgot to update the issue, I got it running, but lot of things had to be done, may I DM you at Gitter @xiazen ?

miker1423 avatar Feb 20 '18 19:02 miker1423

please do and share with me what you have done. Thanks !

xiazen avatar Feb 20 '18 19:02 xiazen

After communication on gitter, we realize the real issue is migration guide from 1.5 to 2.0. Configuration changed a lot in 2.0, and user are not clear which ones they need to configure explicitly now, and which ones not.

For example, In 1.5.4, AzureSilo.DefaultConfiguration() used to configure silo endpoint, gateway ports, etc. But in 2.0 beta, we don't configure those two by default. User need to explicitly configure them, hence the confusion. BTW we recently added default values for both in #4033 , which will be included in rc.

I think the action item here is to provide a way to asist user migrate to use ISiloHostBuilder to configure silos, such as documentation, extension method on ISiloHostBuilder etc.

xiazen avatar Feb 20 '18 22:02 xiazen

Glad to help 😃

miker1423 avatar Feb 21 '18 00:02 miker1423

thanks so much for the investigation! and by

Glad to help

do you mean you volunteer to write the migration doc for AzureSilo?! ;) if yes, much thanks . 💃

xiazen avatar Feb 21 '18 01:02 xiazen

nice talking to you today

xiazen avatar Feb 21 '18 01:02 xiazen

Given that the RC has been released, I'll start writing the docs for the migration from 1.5.x to 2.0 RC1 when using Azure, any suggestions?

miker1423 avatar Mar 02 '18 20:03 miker1423

You can writer how to migrate off AzureSilo, in Orleans 2.0-rc -> Migration secion. If you'd like, you can even help us migrate our AzureWebService sample off AzureSilo. What do you think ?

xiazen avatar Mar 02 '18 21:03 xiazen

Sure, sounds great 😃

miker1423 avatar Mar 02 '18 22:03 miker1423

thank you so much !

xiazen avatar Mar 02 '18 23:03 xiazen

PR with the migration path docs is ready https://github.com/dotnet/orleans/pull/4336

miker1423 avatar Mar 28 '18 21:03 miker1423

Thanks so much for the contribution. Really appreciate it. And btw I merged your pr. So close this issue now.

xiazen avatar Mar 28 '18 22:03 xiazen