From 8acadfa4c077e1b13212159dc513ac2ed3877b18 Mon Sep 17 00:00:00 2001 From: magriggs <23439176+magriggs@users.noreply.github.com> Date: Fri, 11 Aug 2023 11:18:56 +0800 Subject: [PATCH] Update spot_fleet.md A factual correction (Spot Fleet does NOT support AZ rebalancing) and some grammatical corrections/clarifications. --- content/launching_ec2_spot_instances/spot_fleet.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/launching_ec2_spot_instances/spot_fleet.md b/content/launching_ec2_spot_instances/spot_fleet.md index 606a9f7c..e6300cb7 100644 --- a/content/launching_ec2_spot_instances/spot_fleet.md +++ b/content/launching_ec2_spot_instances/spot_fleet.md @@ -7,9 +7,9 @@ weight = 210 We strongly discourage using the RequestSpotFleet API because it is a legacy API with no planned investment. If you want to manage your instance lifecycle, launch EC2 Spot instance via Auto Scaling group API. If you don't want to manage your instance lifecycle, launch EC2 Spot instance via EC2 Fleet API. See [Spot best practices](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use) for more details. {{% /notice %}} - Spot Fleet allows you to diversify across different AZs and networks. However, unlike Auto Scaling groups, it does re-balance instances across AZs. Therefore, consider using Auto Scaling groups instead if AZ-rebalance is key for your workload. Spot Fleet supports types `maintain` and `request`. Similar to Auto Scaling groups, the `maintain` type preserves the number of instances by provisioning new healthy instances when it detects that one of the existing instances has become un-healthy. +Spot Fleet allows you to diversify across different AZs and networks. However, unlike Auto Scaling groups, Spot Fleet does not re-balance instances across AZs. Therefore, consider using Auto Scaling groups instead if AZ-rebalance is key for your workload. Spot Fleet supports types `maintain` and `request`. Similar to Auto Scaling groups, the `maintain` type preserves the number of instances by provisioning new healthy instances when it detects that one of the existing instances has become un-healthy. -To support mix instances with different types and purchasing options, Spot Fleet must use **launch templates**. In this exercise, you re-use the same launch template that you created before. +To support mixed instances with different types and purchasing options, Spot Fleet must use **launch templates**. In this exercise, you re-use the same launch template that you created before. #### Spot Fleet example: Using weighted mixed instances with Spot Fleet for batch workloads @@ -97,7 +97,7 @@ cat < ./spot-fleet-request-config.json EoF ``` -Note how the Spot Fleet request file specifies the `TargetCapacity` and `OnDemandTargetCapacity`. The split between those two will go into Spot capacity (i.e: to have all on Spot capacity, just set the `OnDemandTargetCapacity` to 0). +Note how the Spot Fleet request file specifies the `TargetCapacity` and `OnDemandTargetCapacity`. The split between those two will go into Spot capacity. To request that all the capacity be Spot instances, set `OnDemandTargetCapacity` to 0. When `AllocationStrategy` is set to `priceCapacityOptimized`, Spot Fleet launches instances from optimal Spot pools for the target capacity of instances (in this case weights) that you are launching. Spot Fleet then requests Spot Instances from the lowest priced of these pools.