private static Dictionary <string, string> BuildProviderSettings(EventHubStreamProviderSettings providerSettings) { var settings = new Dictionary <string, string>(); // get initial settings from configs providerSettings.WriteProperties(settings); EventHubConfig.Value.WriteProperties(settings); CheckpointerSettings.WriteProperties(settings); return(settings); }
private static Dictionary <string, string> BuildProviderSettings() { var settings = new Dictionary <string, string>(); // get initial settings from configs ProviderConfig.WriteProperties(settings); EventHubConfig.WriteProperties(settings); CheckpointerSettings.WriteProperties(settings); // add queue balancer setting settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.StaticClusterConfigDeploymentBalancer.ToString()); return(settings); }
private static Dictionary <string, string> BuildProviderSettings() { var settings = new Dictionary <string, string>(); // get initial settings from configs ProviderSettings.WriteProperties(settings); EventHubConfig.Value.WriteProperties(settings); CheckpointerSettings.WriteProperties(settings); // add queue balancer setting settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.AssemblyQualifiedName); // add pub/sub settting settings.Add(PersistentStreamProviderConfig.STREAM_PUBSUB_TYPE, StreamPubSubType.ImplicitOnly.ToString()); return(settings); }
private static void AdjustClusterConfiguration(ClusterConfiguration config) { var settings = new Dictionary <string, string>(); // get initial settings from configs ProviderSettings.WriteProperties(settings); EventHubConfig.Value.WriteProperties(settings); CheckpointerSettings.WriteProperties(settings); // add queue balancer setting settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.ToString()); // register stream provider config.Globals.RegisterStreamProvider <EHStreamProviderWithCreatedCacheList>(StreamProviderName, settings); config.Globals.RegisterStorageProvider <MemoryStorage>("PubSubStore"); }
private static void AdjustClusterConfiguration(ClusterConfiguration config) { var settings = new Dictionary <string, string>(); // get initial settings from configs ProviderConfig.WriteProperties(settings); EventHubConfig.WriteProperties(settings); CheckpointerSettings.WriteProperties(settings); // add queue balancer setting settings.Add(PersistentStreamProviderConfig.QUEUE_BALANCER_TYPE, StreamQueueBalancerType.DynamicClusterConfigDeploymentBalancer.ToString()); // register stream provider config.Globals.RegisterStreamProvider <EventHubStreamProvider>(StreamProviderName, settings); config.Globals.RegisterStorageProvider <MemoryStorage>("PubSubStore"); // Make sure a node config exist for each silo in the cluster. // This is required for the DynamicClusterConfigDeploymentBalancer to properly balance queues. config.GetOrCreateNodeConfigurationForSilo("Primary"); config.GetOrCreateNodeConfigurationForSilo("Secondary_1"); }