Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to switch scylla cluster to large aws instances

I have a scylla cluster running on AWS i3en.xlarge instances which has 16 nodes.

Is there an easy way for me to switch the cluster to i3en.2xlarge or i3en.4xlarge other than replacing existing node one by one (e.g. add a new node and remove a node)?

If I add one i3en.2xlarge instance, will the cluster auto balances the data so that on the i3en.2xlarge it uses roughly twice the disk space as i3en.xlarge?

like image 670
SilentCanon Avatar asked Oct 15 '19 20:10

SilentCanon


Video Answer


2 Answers

You can add a logical DC of the new nodes, run repair and then get rid of the original DC

like image 179
dor laor Avatar answered Oct 07 '22 09:10

dor laor


  1. Add a new DC with the desired instance type (see the procedure @TzachLivyatan posted in his comment)

  2. Wait for streaming to the new DC to complete

  3. Run a full cluster repair -> wait for it to complete

  4. Decommission the "original" DC: https://docs.scylladb.com/operating-scylla/procedures/cluster-management/decommissioning_data_center/

like image 30
TomerSan Avatar answered Oct 07 '22 07:10

TomerSan