Skip to content

Configuration for Production using Service Fabric OnPrimesse #2973

Description

@juscelior

Does anyone here use Orleans with Service Fabric in production?

What would be the best setting for this environment.

I'm using:

public ClusterConfiguration GetClusterConfiguration()
{
    var config = new ClusterConfiguration();
    config.Globals.DeploymentId = Regex.Replace(
        this.Context.ServiceName.PathAndQuery.Trim('/'),
        "[^a-zA-Z0-9_]",
        "_");
    config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.ReminderTableGrain;
    config.Globals.LivenessType = GlobalConfiguration.LivenessProviderType.Custom;
    config.Globals.MembershipTableAssembly = typeof(OrleansServiceFabricExtensions).Assembly.FullName;

    config.Globals.RegisterStorageProvider<StorageAWS.DynamoDBStorageProvider>("DDBStore", new Dictionary<string, string>
    {
        { "DeleteStateOnClear", "true" },
        { "DataConnectionString", "Service=sa-east-1;AccessKey=...;SecretKey=...;" },
        { "TableName", "OrleansGrainState" }
    });
    config.Globals.DataConnectionString = "UseDevelopmentStorage=true";
    config.Defaults.StartupTypeName = typeof(ClusterStartup).AssemblyQualifiedName;
    //config.Defaults.DefaultTraceLevel = Severity.Verbose;
    LogManager.LogConsumers.Add(new EventSourceLogger());
    config.Globals.RegisterBootstrapProvider<BootstrapProvider>("booter");
    return config;
}

*I'm using with reference Exmple that is in GitHub

But it is presenting some errors like:
Response did not arrive on time in 00:00:30 for message: Request *cli/2e3303aa@4943adbf->S127.0.0.1:30015:230762228TypeManagerId@S00000011 #3: global::Orleans.Runtime.IClusterTypeManager:GetImplicitStreamSubscriberTable(). Target History is: <S127.0.0.1:30015:230762228:TypeManagerId:@S00000011>.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions