コード例 #1
0
            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);
            }
コード例 #2
0
            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);
            }
コード例 #3
0
            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);
            }
コード例 #4
0
            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");
            }
コード例 #5
0
            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");
            }