#[non_exhaustive]pub struct ParallelismConfiguration {
pub configuration_type: ConfigurationType,
pub parallelism: Option<i32>,
pub parallelism_per_kpu: Option<i32>,
pub auto_scaling_enabled: Option<bool>,
}Expand description
Describes parameters for how a Flink-based Kinesis Data Analytics application executes multiple tasks simultaneously. For more information about parallelism, see Parallel Execution in the Apache Flink Documentation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.configuration_type: ConfigurationTypeDescribes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to CUSTOM in order to change your application's AutoScalingEnabled, Parallelism, or ParallelismPerKPU properties.
parallelism: Option<i32>Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. If AutoScalingEnabled is set to True, Kinesis Data Analytics increases the CurrentParallelism value in response to application load. The service can increase the CurrentParallelism value up to the maximum parallelism, which is ParalellismPerKPU times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by requesting a limit increase. If application load is reduced, the service can reduce the CurrentParallelism value down to the Parallelism setting.
parallelism_per_kpu: Option<i32>Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.
auto_scaling_enabled: Option<bool>Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.
Implementations§
source§impl ParallelismConfiguration
impl ParallelismConfiguration
sourcepub fn configuration_type(&self) -> &ConfigurationType
pub fn configuration_type(&self) -> &ConfigurationType
Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to CUSTOM in order to change your application's AutoScalingEnabled, Parallelism, or ParallelismPerKPU properties.
sourcepub fn parallelism(&self) -> Option<i32>
pub fn parallelism(&self) -> Option<i32>
Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. If AutoScalingEnabled is set to True, Kinesis Data Analytics increases the CurrentParallelism value in response to application load. The service can increase the CurrentParallelism value up to the maximum parallelism, which is ParalellismPerKPU times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by requesting a limit increase. If application load is reduced, the service can reduce the CurrentParallelism value down to the Parallelism setting.
sourcepub fn parallelism_per_kpu(&self) -> Option<i32>
pub fn parallelism_per_kpu(&self) -> Option<i32>
Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.
sourcepub fn auto_scaling_enabled(&self) -> Option<bool>
pub fn auto_scaling_enabled(&self) -> Option<bool>
Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.
source§impl ParallelismConfiguration
impl ParallelismConfiguration
sourcepub fn builder() -> ParallelismConfigurationBuilder
pub fn builder() -> ParallelismConfigurationBuilder
Creates a new builder-style object to manufacture ParallelismConfiguration.
Trait Implementations§
source§impl Clone for ParallelismConfiguration
impl Clone for ParallelismConfiguration
source§fn clone(&self) -> ParallelismConfiguration
fn clone(&self) -> ParallelismConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ParallelismConfiguration
impl Debug for ParallelismConfiguration
source§impl PartialEq for ParallelismConfiguration
impl PartialEq for ParallelismConfiguration
source§fn eq(&self, other: &ParallelismConfiguration) -> bool
fn eq(&self, other: &ParallelismConfiguration) -> bool
self and other values to be equal, and is used
by ==.