@@ -176,9 +176,9 @@ configured but cheaper spot instances.
176
176
177
177
The replacements are done using the relatively new Attach/Detach actions
178
178
supported by the AutoScaling API. A new compatible spot instance is launched,
179
- and after a while, at least as much as the group's grace period, it will be
180
- attached to the group, while at the same time an on-demand instance is detached
181
- from the group and terminated in order to keep the group at constant capacity.
179
+ and it will be immediately attached to the group, while at the same time an
180
+ on-demand instance is detached from the group and terminated in order to keep
181
+ the group at constant capacity.
182
182
183
183
When assessing the compatibility, it takes into account the hardware specs, such
184
184
as CPU cores, RAM size, attached instance store volumes and their type and size,
@@ -205,14 +205,14 @@ During multiple replacements performed on a given group, it only swaps them one
205
205
at a time per Lambda function invocation, in order to not change the group too
206
206
fast, but instances belonging to multiple groups can be replaced concurrently.
207
207
If you find this slow, the Lambda function invocation frequency (defaulting to
208
- once every 5 minutes) can be changed by updating the stack, which has a
208
+ once every 30 minutes) can be changed by updating the stack, which has a
209
209
parameter for it.
210
210
211
211
In the (so far unlikely) case in which the market price is high enough that
212
212
there are no spot instances that can be launched, (and also in case of software
213
213
crashes which may still rarely happen), the group would not be changed and it
214
214
would keep running as it is, but AutoSpotting will continuously attempt to
215
- replace them, until eventually the prices decrease again and replaecments may
215
+ replace them, until eventually the prices decrease again and replacements may
216
216
succeed again.
217
217
218
218
## Internal components ##
@@ -223,7 +223,7 @@ Amazon AWS account, created automatically with CloudFormation or Terraform:
223
223
### Event generator ###
224
224
225
225
CloudWatch event source used for triggering the Lambda function. The default
226
- frequency is every 5 minutes, but it is configurable using stack parameters.
226
+ frequency is every 30 minutes, but it is configurable using stack parameters.
227
227
228
228
### Lambda function ###
229
229
@@ -236,18 +236,14 @@ frequency is every 5 minutes, but it is configurable using stack parameters.
236
236
of passing any explicit AWS credentials or access keys.
237
237
- Some algorithm parameters can be configured using Lambda environment
238
238
variables, based on some of the stack parameters.
239
- - Contains a handler written in Golang, built using the
240
- [ eawsy/aws-lambda-go] ( https://github.com/eawsy/aws-lambda-go ) library, which
241
- implements a novel aproach that allows Golang code compiled natively to be
242
- built in such a way that it can be injected into the Lambda Python runtime.
243
- - The handler implements all the instance replacement logic.
239
+ - Contains a handler written in Golang which implements all the instance
240
+ replacement logic.
244
241
- The spot instances are created by duplicating the configuration of the
245
242
currently running on-demand instances as closely as possible(IAM roles,
246
- security groups, user_data script, etc.) only by adding a spot bid price
247
- attribute and eventually changing the instance type to a usually bigger, but
248
- compatible one.
249
- - The bid price is set to the on-demand price of the instances configured
250
- initially on the AutoScaling group.
243
+ security groups, user_data script, etc.), maybe changing the instance type
244
+ to a usually bigger, but compatible one.
245
+ - The Spot price is set by default to the on-demand price of the instances configured
246
+ initially on the AutoScaling group, but this is configurable.
251
247
- The new launch configuration may also have a different instance type,
252
248
determined based on compatibility with the original instance type,
253
249
considering also how much redundancy we need to have in place in the current
0 commit comments