by young » Sun Nov 11, 2012 11:17 pm
How long does a migration take?
Migrations do not take a set amount of time. You can configure the amount of resources dedicated to the migration. Aerospike has default settings that will ensure that if a migration occurs, it will not impact the performance of the cluster.
You will not be able to accurately predict when a migration completes because of various variables: load on system, cluster size, migration tables, etc. But there are ways we can extrapolate to see how much migration occurs over a period of time and then estimate it, (as long as cluster state do not change and nodes are not restarted, which would then reset everything).
Migrations can be controlled by the following config parameters: “migrate-xmit-hwm” , “migrate-xmit-lwm”. Also a static value “migrate-threads” which we recommend at 1 and if changed, requires node restart.
These configuration settings are in the main Aerospike configuration file “/etc/citrusleaf/citrusleaf.conf” in the “service” area.
CODE: SELECT ALL
service {
...
migrate-xmit-hwm 6
migrate-xmit-lwm 1
migrate-threads 1
...
}
The way these parameters interact is whenever the queue is greater than migrate-xmit-hwm it will stop migrating data. Whenever it goes below migrate-xmit-lwm it will start migrating data.
Times will vary depending on a few different factors, including the network and amount of data per node. For typical loads, expect a migration to take one to several hours.