Page MenuHomePhabricator
Paste P1907

reduce size of disk on elastic1022
ActivePublic

Authored by chasemp on Aug 20 2015, 7:36 PM.
curl -XPOST localhost:9200/_cluster/reroute -d'{
"commands": [ {
"move": {
"index": "enwiki_content_1432182861", "shard": 5,
"from_node": "elastic1022", "to_node": "elastic1004"
}
} ]
}'
note:
36222enwiki_content_1432182861 5 r STARTED 937439 31.5gb 10.64.48.46 elastic1022
elastic1004
/dev/md2 ext4 494G 235G 259G 48% /var/lib/elasticsearch

Event Timeline

chasemp edited the content of this paste. (Show Details)Aug 20 2015, 7:36 PM
chasemp changed the title of this paste from untitled to reduce size of disk on elastic1022.
chasemp updated the paste's language from autodetect to autodetect.
chasemp edited the content of this paste. (Show Details)
chasemp updated the paste's language from autodetect to text.
chasemp edited the content of this paste. (Show Details)
chasemp edited the content of this paste. (Show Details)

root@elastic1022:~# curl -XPOST localhost:9200/_cluster/reroute -d'{

"commands": [ {
  "move": {
    "index": "enwiki_content_1432182861", "shard": 5,
    "from_node": "elastic1022", "to_node": "elastic1004"
  }
} ]

}'

{"error":"RemoteTransportException[[elastic1001][inet[/10.64.0.108:9300]][cluster:admin/reroute]]; nested: ElasticsearchIllegalArgumentException[[move_allocation] can't move [enwiki_content_1432182861][5], from [elastic1022][IUWTWWTBSTC0hQSXQcW1Yw][elastic1022][inet[/10.64.48.46:9300]]{rack=D3, row=D, master=false}, to [elastic1004][yvxg_GYMSRaqT2gT81gUHA][elastic1004][inet[/10.64.0.111:9300]]{rack=A3, row=A, master=false}, since its not allowed, reason: [YES(shard is not allocated to same node or host)][YES(node passes include/exclude/require filters)][YES(primary is already active)][YES(below shard recovery limit of [3])][YES(allocation disabling is ignored)][YES(allocation disabling is ignored)][YES(no allocation awareness enabled)][NO(too many shards for this index on node [1], limit: [1])][YES(target node version [1.7.1] is same or newer than source node version [1.7.1])][YES(enough disk for shard on node, free: [258.5gb])][YES(shard not primary or relocation disabled)]]; ","status":400}

root@elastic1022:~# curl -XPOST localhost:9200/_cluster/reroute -d'{

"commands": [ {
  "move": {
    "index": "enwiki_content_1432182861", "shard": 5,
    "from_node": "elastic1022", "to_node": "elastic1030"
  }
} ]

}'

{"acknowledged":true,"state":{...