Struct rusoto_emr::InstanceFleetConfig
source · [−]pub struct InstanceFleetConfig {
pub instance_fleet_type: String,
pub instance_type_configs: Option<Vec<InstanceTypeConfig>>,
pub launch_specifications: Option<InstanceFleetProvisioningSpecifications>,
pub name: Option<String>,
pub target_on_demand_capacity: Option<i64>,
pub target_spot_capacity: Option<i64>,
}
Expand description
The configuration that defines an instance fleet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Fields
instance_fleet_type: String
The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.
instance_type_configs: Option<Vec<InstanceTypeConfig>>
The instance type configurations that define the EC2 instances in the instance fleet.
launch_specifications: Option<InstanceFleetProvisioningSpecifications>
The launch specification for the instance fleet.
name: Option<String>
The friendly name of the instance fleet.
target_on_demand_capacity: Option<i64>
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity
. When an On-Demand Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity
. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
target_spot_capacity: Option<i64>
The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity
. When a Spot Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
Trait Implementations
sourceimpl Clone for InstanceFleetConfig
impl Clone for InstanceFleetConfig
sourcefn clone(&self) -> InstanceFleetConfig
fn clone(&self) -> InstanceFleetConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstanceFleetConfig
impl Debug for InstanceFleetConfig
sourceimpl Default for InstanceFleetConfig
impl Default for InstanceFleetConfig
sourcefn default() -> InstanceFleetConfig
fn default() -> InstanceFleetConfig
Returns the “default value” for a type. Read more
sourceimpl PartialEq<InstanceFleetConfig> for InstanceFleetConfig
impl PartialEq<InstanceFleetConfig> for InstanceFleetConfig
sourcefn eq(&self, other: &InstanceFleetConfig) -> bool
fn eq(&self, other: &InstanceFleetConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstanceFleetConfig) -> bool
fn ne(&self, other: &InstanceFleetConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for InstanceFleetConfig
impl Serialize for InstanceFleetConfig
impl StructuralPartialEq for InstanceFleetConfig
Auto Trait Implementations
impl RefUnwindSafe for InstanceFleetConfig
impl Send for InstanceFleetConfig
impl Sync for InstanceFleetConfig
impl Unpin for InstanceFleetConfig
impl UnwindSafe for InstanceFleetConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more