Skip to content

DeploymentBasedQueueBalancer Constructors

DeploymentBasedQueueBalancer is a stream queue balancer that uses deployment information to help balance queue distribution. DeploymentBasedQueueBalancer uses the deployment configuration to determine how many silos to expect and uses a silo status oracle to determine which of the silos are available. With this information it tries to balance the queues using a best fit resource balancing algorithm.

DeploymentBasedQueueBalancer(ISiloStatusOracle, IDeploymentConfiguration, DeploymentBasedQueueBalancerOptions, IServiceProvider, ILogger<DeploymentBasedQueueBalancer>)

View source
public DeploymentBasedQueueBalancer(ISiloStatusOracle siloStatusOracle, IDeploymentConfiguration deploymentConfig, DeploymentBasedQueueBalancerOptions options, IServiceProvider services, ILogger<DeploymentBasedQueueBalancer> logger)
Initializes a new instance of the DeploymentBasedQueueBalancer class.

Parameters

siloStatusOracleISiloStatusOracle
The silo status oracle.
deploymentConfigIDeploymentConfiguration
The deployment configuration.
optionsDeploymentBasedQueueBalancerOptions
The queue balancer options.
servicesIServiceProvider
The service provider.
loggerILogger<DeploymentBasedQueueBalancer>
The logger.