SiloPersistentStreamConfiguratorExtension.UseAzureDeploymentLeaseBasedBalancer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stream queue balancer that uses Azure deployment information for load balancing. Requires silo running in Azure. This balancer supports queue balancing in cluster auto-scale scenario, unexpected server failure scenario, and try to support ideal distribution
public static Orleans.Streams.ISiloPersistentStreamConfigurator UseAzureDeploymentLeaseBasedBalancer (this Orleans.Streams.ISiloPersistentStreamConfigurator configurator, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.LeaseBasedQueueBalancerOptions>> configureOptions = default);
static member UseAzureDeploymentLeaseBasedBalancer : Orleans.Streams.ISiloPersistentStreamConfigurator * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.LeaseBasedQueueBalancerOptions>> -> Orleans.Streams.ISiloPersistentStreamConfigurator
<Extension()>
Public Function UseAzureDeploymentLeaseBasedBalancer (configurator As ISiloPersistentStreamConfigurator, Optional configureOptions As Action(Of OptionsBuilder(Of LeaseBasedQueueBalancerOptions)) = Nothing) As ISiloPersistentStreamConfigurator
Parameters
- configurator
- ISiloPersistentStreamConfigurator
- configureOptions
- Action<OptionsBuilder<LeaseBasedQueueBalancerOptions>>