-
Notifications
You must be signed in to change notification settings - Fork 0
Deploying Presto
Do this first. It should be one instance in infra
mode.
Some queries may die during the switch over, so it's best to do this at a quiet time.
-
Deploy a few (usually two) instances of the worker node in infra mode from Eve. These will be a template for the spot instances.
-
Log into AWS EC2 console and select Auto-Scaling Launch Configuration from the left bar.
-
Find the one for Presto worker (
presto-worker-infra-v*
) that you just created. -
Use "Actions -> Copy launch configuration" button to create a new one.
-
In the new launch configuration, click on "Edit details" in the "Launch configuration details" section.
- Change the name to
presto-worker-infra-v*-spot
. - Select "Request spot instances" as the purchasing option, and choose your bid price (we used 0.30 at the time of writing).
- Change the name to
-
Create that launch configuration. It will ask you which key pair to use, stick with aa-emergency-key.
-
Once this is done, go to the Auto Scaling Group.
- Check the Desired, Min and Max parameters of the old worker deployment (30, 30, 35 resp.) at the time of writing.
- Edit the new ASG to use the new spot deployment configuration with the above parameters.
-
Once the new ASG has reached the correct number of instances, clean up the old one in Eve.