Add Nodes

Version:
2019.3
Last modified: October 09, 2019

Learn, step by step, how to add a node to your Promote cluster if you want to run on more than three nodes.

To add or remove nodes, you should be an advanced user. If this is the first time you add or remove nodes, we recommend that you make an appointment with an Alteryx Customer Support Engineer who guides you through the process.

Requirements

Before you add a node to your Promote cluster, make sure you have a couple things:

  • You must have SSH access to every node in your Promote cluster.
  • Your cluster must currently run on at least version 2019.1.x of Promote.

Add Node

Navigate to the node_maintenance_2019.3.0 directory on your local machine, which is a folder located within the original downloaded and extracted archive you've used to install or upgrade Promote.

Open the add_node.sh script with a text editor, such as vi (if you're unfamiliar with text editors, visit this vi tutorial):

Bash
  1. vi add_node.sh

After you open the file, you should see this:

Bash
  1. Bash
  2. #!/bin/bash
  3.  
  4. set -uea
  5.  
  6. # see README.md for more information
  7.  
  8. # List ALL your existing nodes IPs in bash array format here (not including the node you are adding):
  9. # Ensure both sets of IPs are in the same relative order
  10.  
  11. EXISTING_NODES_IPS=('' '' '')
  12. # Internal IPS
  13. EXISTING_NODES_INT_IPS=('' '' '')
  14.  
  15. # Add the node you would like to add to your cluster here:
  16.  
  17. NEW_NODE_IP=''
  18. NEW_NODE_INT_IP=''
  19.  
  20. # Add your Promote credentials here:
  21.  
  22. QUAY_PROMOTE_USERNAME=''
  23. QUAY_PROMOTE_PW=''
  24.  
  25. # Add your ssh user and key path here:
  26.  
  27. SSH_USER=''
  28. KEY_PATH=''

Within each set of single quotation marks, use vi to insert this information:

  • External IP addresses of the nodes that are already a part of your Promote cluster
  • Internal IP addresses of the nodes that are already a part of your Promote cluster
  • External IP address of the node you want to add to your Promote cluster
  • Internal IP address of the node you want to add to your Promote cluster
  • QUAY credentials, provided by your account executive or Alteryx Fulfillment
  • SSH user and key

After you update the empty fields with needed information, the file should look like this:

Bash
  1. Bash
  2. #!/bin/bash
  3.  
  4. set -uea
  5.  
  6. # see README.md for more information
  7.  
  8. # List ALL your existing nodes' IPs in bash array format here (not including the node you are adding):
  9.  
  10. # Ensure both sets of IPs are in the same relative order
  11. EXISTING_NODES_IPS=('NODE1_EXTERNAL_IP' 'NODE2_EXTERNAL_IP' 'NODE3_EXTERNAL_IP')
  12.  
  13. # Internal IPS
  14. EXISTING_NODES_INT_IPS=('NODE1_INTERNAL_IP' 'NODE2_INTERNAL_IP' 'NODE3_INTERNAL_IP')
  15.  
  16. # Add the node you would like to add to your cluster here:
  17.  
  18. NEW_NODE_IP='NEWNODE_EXTERNAL_IP'
  19. NEW_NODE_INT_IP='NEWNODE_INTERNAL_IP'
  20.  
  21. # Add your Promote credentials here:
  22.  
  23. QUAY_PROMOTE_USERNAME='QUAY_USERNAME'
  24. QUAY_PROMOTE_PW='QUAY_PASSWORD'
  25.  
  26. # Add your ssh user and key path here:
  27.  
  28. SSH_USER='SSH_USERNAME'
  29. KEY_PATH='PATH/TO/SSH/KEY'

Write your changes to the add-node file and then exit the text editor.

Run the add_node.sh script:

Bash
  1. # Make sure you're still working in the node-maintenance directory
  2.  
  3. ./add_node.sh

If this is the first time you've added a node to the swarm, answer y to all prompts.

The script automatically runs preflight checks on all your machines to make sure that you've satisfied these requirements:

  • You have SSH access to all nodes, including your new node.
  • Promote's zipped .tar file is available in your working directory, promote-el7-2019.3.0.tar.gz.

After the preflight checks finish, the script prompts you to install Docker. Answer y if you do not already have docker-ce-18.09.0 installed and an updated daemon.json file created on your new node.

After you've installed Docker on your new machine, the script prompts you to add the node to your swarm. Answer y.

The script now completes several tasks automatically:

  • It copies and unzips the promote-el7-2019.3.0.tar.gz file onto your new node, supplying the node with the Promote overlay files.
  • It moves TLS certificates to the new node. The script will first check for a local ./certs directory with certificates, otherwise if will copy down and utilize the existing certificates on the Master node.
  • It creates your quay_creds.env file using the QUAY_PROMOTE_USERNAME and QUAY_PROMOTE_PW you've provided. This logs you in to Quay.io, allowing you to pull down Promote images from there.
  • It runs final checks to make sure that you successfully added the new node to the Promote cluster. If the script detects any issues, it gives you the option to roll back your changes and remove the new node from the cluster.

All global services (including NGINX, Logstash, Logspout, Registrator, Telegraf, and docker-events-mon) automatically rebalance and create replicas on your new node. But existing models do not redistribute their replicas to the new node until you restart them, redeploy them, or modify their replica count via the UI.

You successfully added a new node to your Promote cluster. It is now able to host models and return predictions.

Was This Helpful?

Need something else? Visit the Alteryx Community or contact support.