OpenStack – Removing nodes from a cluster

Converse to adding capacity to our OpenStack Object Storage cluster, there may be times where we need to scale back or remove a failed node for service. You may need to remove a compute node from a cluster for troubleshooting or maintenance reasons.
We can do this by removing nodes from the zones in our cluster. In the following example, we will remove node 172.16.0.212 in z5, which only has one storage device attached, /dev/sdb1.

To gain in-depth knowledge and be on par with practical experience, then explore the OpenStack Training Course.
 

Log in to the OpenStack Object Storage Proxy  Server. To log on to our OpenStack Object Storage Proxy host that was created using Vagrant, issue the following command:

Vagrant ssh shift

Related Article: Openstack Cloud Tutorial

How to Remove Nodes From a Cluster

Carry out the following to remove a storage node from a zone:

Proxy Server

  • To remove a node from OpenStack Object Storage, we first set its weight to be 0, so that when the rings get rebalanced, data is drained away from this node:

                           Data drained

  • We then rebalance the rings as follows:

                          Rebalance

  • Once this is done, we can remove the node in this zone from the ring, as follows:

                          Node remove

  • We then copy the resultant ring.gz, container.ring.gz, and object.ring.gz files over to the rest of the nodes in our cluster. We are now free to decommission this storage node by physically removing this device.

 

MindMajix YouTube Channel

 

Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers! 

Manually Removing a Node

  1. Manually removing a node from our OpenStack Object Storage cluster is done in three steps:
  2. Setting the node’s weight to be 0, so the data isn’t being replicated to it, by using the swift-ring-builder set-weight command. Rebalancing the rings to update the data replication.

Removing the node from OpenStack object storage cluster, using the swift-ring-builder remove command. Once done, we are then free to decommission that node. We repeat it for each node (or device) in the zone.

Job Support Program

Online Work Support for your on-job roles.

jobservice

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
OpenStack TrainingNov 19 to Dec 04View Details
OpenStack TrainingNov 23 to Dec 08View Details
OpenStack TrainingNov 26 to Dec 11View Details
OpenStack TrainingNov 30 to Dec 15View Details
Last updated: 01 May 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less
  1. Share:
OpenStack Articles