Spot Event Plugins - Spot Fleet Requests¶
A Spot Fleet Request defines a collection of Spot instances and the parameters with which they will be launched.
The Spot Event Plugin uses a separate Spot Fleet Request for each Deadline Group.
Creating the Spot Fleet Requests¶
To create a Spot Fleet Request via the AWS Management Console:
Sign in to the AWS Management Console.
Click on Services at the top of the AWS Management Console, then click on EC2 under Compute.
In the EC2 panel, click Spot Requests in the sidebar under Instances, then click the Request Spot Instances button.
Select Flexible Workflows to allow instances of any size in any Availability Zone to be launched.
Select a Launch template for your AMI if you have created one (optional). Otherwise select the AMI that you created.
WarningNote that you must add the following key/value pair as a Tag in the Launch template for it to work properly with the Resource Tracker:
'DeadlineTrackedAWSResource':'SpotEventPlugin'.Not adding this Tag will cause the termination of your instances as unhealthy by the Resource Tracker if it is running!
Set Auto-assign IPv4 public IP to Enable
Set the IAM Instance Profile to the “DeadlineSpot*” IAM instance Profile you created earlier.
Set the Total target capacity value to the maximum number of Workers you would like in your Spot Fleet, and enable Maintain target capacity.
Set the IAM Fleet Role if you created a new one, otherwise leave it at its default.
If you would like to perform any custom setup when your instance starts up, you can add a User data script. See Render Farm Connectivity.
Download the Fleet Configuration by pressing the JSON Config button at the bottom of the page.
See the Spot Fleet Request Configurations topic for an example JSON configuration.