Remove Nodes

Version:
2019.3
Last modified: December 09, 2019

Learn, step by step, how to remove a node from your Promote cluster.

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.

You can only remove a node from your cluster if it contains more than three nodes.

Requirements

Before you remove a node from 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.

The node you remove must not be the master node, which holds the core Promote services. The remove_nodes script checks to make sure you don't try to remove the master node.

If you increased the number of replicas of your models after you added nodes to your cluster, you may want to reduce the number of replicas. See Administer for instructions about how to reduce replicas of a model.

Remove 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 remove_node script with a text editor, such as vi (if you're unfamiliar with text editors, visit this vi tutorial):

Bash
  1. vi remove_node.sh

After you open the file, you should see this:

Bash
  1. #!/bin/bash
  2. set -uea
  3.  
  4. # see README.md for more information
  5. # List ALL your nodes IPs (including your removal node) in bash array format here:
  6. # Ensure both sets of IPs are in the same relative order
  7. EXISTING_NODES_IPS=('' '' '' '')
  8.  
  9. # Internal IPS
  10. EXISTING_NODES_INT_IPS=('' '' '' '')
  11.  
  12. # Add the node removal IP again here:
  13. NODE_REMOVAL_IP=''
  14. NODE_REMOVAL_INT_IP=''
  15.  
  16. # Add your Promote credentials here:
  17. QUAY_PROMOTE_USERNAME=''
  18. QUAY_PROMOTE_PW=''
  19.  
  20. # Add your ssh user and key path here:
  21. SSH_USER=''
  22. KEY_PATH=''

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

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

When you finish updating the empty fields with needed information, the file should look like this:

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

Write to the remove-node file and then exit the text editor.

Run the remove-node script:

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

That 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.
  • You are not trying to remove the master node.
  • After removing the node, you have at least three active nodes in your cluster.
  • Memory usage is below 80% on all worker nodes. (You can override this requirement, but we do not recommend you do that.)

After the preflight checks finish, the script removes the node from the swarm.

Watch your terminal for updates. If you experience any issues during removal, follow any on-screen instructions. Wait several minutes before you attempt to rerun the remove-node script.

You successfully removed a node from your Promote cluster. See Add Nodes if you want to add other nodes.

Was This Helpful?

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