EnableAWSSpot

From Array Suite Wiki

Jump to: navigation, search


Flag that tells the application whether or not Spot Instances should be used.
When Spot Instances are used, you pay the Spot price that's in effect for the time period your instances are running (more details here).

Possible values:

  • False (default - OnDemand instances are used)
  • True (Spot instances are used)

Contents

Enabling spot instances in script

If the user wants to enable spot instances for any type of analysis, the user can set /EnableAWSSPot=True in the oscript Options section. This will overwrite the default option specified in ArrayServer.cfg for the duration of these jobs.

Specifying spot instance price in script

Additionally, only in the oscript, in the Options section, when /EnableAWSSPot is set to True, user can also specify a spot price she is willing to pay, with parameter /SpotBidMaxPrice=x.xxxx. This will have an effect only for the duration of these jobs. If spot instances are more expensive at the time of the run, the oscript will fail.

e.g. /EnableAWSSPot=True /SpotBidMaxPrice=0.045

Common Errors

If you see an instance creation error, you will be notified if attempt was unsuccessful because your bid was too low. [00:00:40] Error occurred from OJobProcess.Run. Error message=Instance creation is not successful. Error=Your Spot request price of 0.3 is lower than the minimum required Spot request fulfillment price of 0.563.

What error will you see if /SpotBidMaxPrice=x.xxxx is set to an invalid paramater. Such as /SpotBidMaxPrice=0.0000 [00:00:43] Error occurred in module::runscript Error=Instance creation is not successful. Error=Value (0.000000) for parameter price is invalid. "0.000000" is an invalid spot instance price
Potentially useful page for Spot Instance Pricing https://aws.amazon.com/ec2/spot/pricing/

Related Articles