Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is a script at /app/scripts/realloc_shards.sh <Data Node 1> <Data Node 2> ...

You only need to rake the number at the end of the nodes name for Example es-raw-trans-Node-3 means data node number is 3

The scripts gets a space separated list of data nodes (Those <Node Name>

The scripts gets data node name (of with Type = D) and scan all shards and reallocate unassigned shards to the available data node from the listprovided.

In the example above we should run command

Code Block
/app/scripts/realloc_shards.sh 2

 

It might take a while but when you refresh the screen you will see the number of unassigned is decrease and the number  of assigned is increased until all are assigned.

...

MonTie-es-raw-trans-Node-2

This operation may take a while depends on your installation and amount of data. Refreshing the screen in "head" application available from Store dashboard will show updated state of the assigned and unassigned shards.


Below is example of successfull execution:

Code Block
Reallocation node: MonTier-es-raw-trans-Node-2
Testing index 1;wdp-syslog-sys-error_i14
About to reallocate. index=wdp-syslog-sys-error_i14, shard=1, node=MonTier-es-raw-trans-Node-2
Reallocation return code is : 0, output={"acknowledged":true,"state":{"version":882,"state
Testing index 1;wdp-syslog_i260
About to reallocate. index=wdp-syslog_i260, shard=1, node=MonTier-es-raw-trans-Node-2
Reallocation return code is : 0, output={"acknowledged":true,"state":{"version":884,"state
Testing index 1;wdp-service-resources_i5
About to reallocate. index=wdp-service-resources_i5, shard=1, node=MonTier-es-raw-trans-Node-2
Reallocation return code is : 0, output={"acknowledged":true,"state":{"version":886,"state
Testing index 1;internal-operations_i6
About to reallocate. index=internal-operations_i6, shard=1, node=MonTier-es-raw-trans-Node-2
Reallocation return code is : 0, output={"acknowledged":true,"state":{"version":888,"state
Testing index 1;logical-tran-compact_i16
About to reallocate. index=logical-tran-compact_i16, shard=1, node=MonTier-es-raw-trans-Node-2
...