C# Class DynamoDbAutoscaler.Autoscaler

Inheritance: IAutoscaler
Mostrar archivo Open project: litmus/DynamoDbAutoscaler Class Usage Examples

Public Methods

Method Description
Autoscaler ( IDynamoDbTableThroughputClient throughputClient, IDynamoDbTableMetricsClient metricsClient, IAutoscalingCalculator autoscalingCalculator, ICircuitBreaker circuitBreaker, ILogger structuredLogger ) : System
Autoscaler ( ILogger logger ) : System
EnsureProvisionAsync ( GlobalAutoscalingConfigurationSet configurationSet, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
ComputeScaleDirection ( bool isCircuitBreakerTripped, long provisioned, DynamoDbThroughputMetrics metrics, AutoscalingConfiguration configuration ) : AutoscaleDirection
ComputeScaleDirection ( bool isCircuitBreakerTripped, long provisionedUnits, long consumedUnits, int upperThreshold, int lowerThreshold, int throttleThreshold, long throttleEvents, double consumptionDirection, double throttleDirection ) : AutoscaleDirection
ComputeUpdatedProvisioned ( AutoscaleDirection autoscaleDirection, long provisionedUnits, int increasePercent, int decreasePercent ) : long
ComputeUpdatedProvisioned ( AutoscaleDirection autoscaleDirection, long provisionedUnits, int increasePercent, int decreasePercent, int minProvisioned, int maxProvisioned ) : long
ComputeUpdatedProvisioned ( long provisioned, AutoscaleDirection autoscaleDirection, DynamoDbThroughputMetrics metrics, AutoscalingConfiguration configuration ) : long
EnsureAllGlobalSecondaryIndexProvisionAsync ( bool isCircuitBreakerTripped, GlobalSecondaryIndexAutoscalingConfigurationSet configuration, CancellationToken cancellationToken = default(CancellationToken) ) : Task
EnsureGlobalSecondaryIndexProvisionAsync ( bool isCircuitBreakerTripped, GlobalSecondaryIndexAutoscalingConfigurationSet configuration, CancellationToken cancellationToken = default(CancellationToken) ) : Task
EnsureProvision ( bool isCircuitBreakerTripped, DynamoDbTableThroughput provisioned, DynamoDbMetrics metrics, AutoscalingConfigurationSet configuration ) : DynamoDbTableThroughput
EnsureProvision ( bool isCircuitBreakerTripped, long provisioned, DynamoDbThroughputMetrics metrics, AutoscalingConfiguration configuration ) : long
EnsureProvisionAsync ( bool isCircuitBreakerTripped, AutoscalingConfigurationSet configurationSet, CancellationToken cancellationToken = default(CancellationToken) ) : Task
EnsureTableProvisionAsync ( bool isCircuitBreakerTripped, TableAutoscalingConfigurationSet configuration, CancellationToken cancellationToken = default(CancellationToken) ) : Task
LogStats ( AutoscalingConfigurationSet configuration, DynamoDbThroughput throughput, DynamoDbMetrics metrics ) : void

Method Details

Autoscaler() public method

public Autoscaler ( IDynamoDbTableThroughputClient throughputClient, IDynamoDbTableMetricsClient metricsClient, IAutoscalingCalculator autoscalingCalculator, ICircuitBreaker circuitBreaker, ILogger structuredLogger ) : System
throughputClient IDynamoDbTableThroughputClient
metricsClient IDynamoDbTableMetricsClient
autoscalingCalculator IAutoscalingCalculator
circuitBreaker ICircuitBreaker
structuredLogger ILogger
return System

Autoscaler() public method

public Autoscaler ( ILogger logger ) : System
logger ILogger
return System

EnsureProvisionAsync() public method

public EnsureProvisionAsync ( GlobalAutoscalingConfigurationSet configurationSet, CancellationToken cancellationToken = default(CancellationToken) ) : Task
configurationSet DynamoDbAutoscaler.Configuration.GlobalAutoscalingConfigurationSet
cancellationToken System.Threading.CancellationToken
return Task