Skip to content

Deploying Presto

Jenny Thompson edited this page May 30, 2018 · 1 revision

Deploying the master node

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.

Deploying the worker nodes.

  1. Deploy a few (usually two) instances of the worker node in infra mode from Eve. These will be a template for the spot instances.

  2. Log into AWS EC2 console and select Auto-Scaling Launch Configuration from the left bar.

  3. Find the one for Presto worker (presto-worker-infra-v*) that you just created.

  4. Use "Actions -> Copy launch configuration" button to create a new one.

  5. In the new launch configuration, click on "Edit details" in the "Launch configuration details" section.

    1. Change the name to presto-worker-infra-v*-spot.
    2. Select "Request spot instances" as the purchasing option, and choose your bid price (we used 0.30 at the time of writing).
  6. Create that launch configuration. It will ask you which key pair to use, stick with aa-emergency-key.

  7. Once this is done, go to the Auto Scaling Group.

    1. Check the Desired, Min and Max parameters of the old worker deployment (30, 30, 35 resp.) at the time of writing.
    2. Edit the new ASG to use the new spot deployment configuration with the above parameters.
  8. Once the new ASG has reached the correct number of instances, clean up the old one in Eve.