Running
GET _tasks?actions=*reindex&detailed
While running the re-indexing code
{
"nodes" : {
"aOYQyOfCQiyOGT9HaQr8nQ" : {
"name" : "SOME-NODE-NAME",
"transport_address" : "some-ip:9300",
"host" : "some-ip",
"ip" : "some-ip:9300",
"roles" : [
"data"
],
"attributes" : {
"ml.machine_memory" : "17096605696",
"xpack.installed" : "true",
"ml.max_open_jobs" : "20",
"ml.enabled" : "true"
},
"tasks" : {
"aOYQyOfCQiyOGT9HaQr8nQ:91604987" : {
"node" : "aOYQyOfCQiyOGT9HaQr8nQ",
"id" : 91604987,
"type" : "transport",
"action" : "indices:data/write/reindex",
"status" : {
"total" : 2703761,
"updated" : 0,
"created" : 5000,
"deleted" : 0,
"batches" : 6,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0
},
"description" : """reindex from [old_index] updated with Script{type=inline, lang='painless', idOrCode='ctx._source.new_field1= ctx._source.field1;ctx._source.remove("field1");', options={}, params={}} to [new_index]""",
"start_time_in_millis" : 1561016910227,
"running_time_in_nanos" : 2826725842,
"cancellable" : true,
"headers" : { }
}
}
}
}
}
some-ip
is the ip of the node that I am running reindexing on (the one hosting Kibana as I am running this on Kibana dev tools)
Running the same request without having re-indexing in background, I got:
{
"nodes" : { }
}
Running:
GET _cat/indices/old_index,new_index
I got:
green open old_index kTzZiAggRMG0y5K4Xt7xzQ 5 2 2703795 528414 13.3gb 4.3gb
green open new_index q123gbafShOSA4Vh45gC3g 5 2 504996 0 871.4mb 291.5mb