SHARE
TWEET

Untitled

a guest Oct 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http://xx.xx.xx.1:9200/_cat/shards
  2.    
  3. myindex              2 r STARTED 16584778   1.4gb xx.xx.xx.2 node2
  4. myindex              2 p STARTED 16584778   1.4gb xx.xx.xx.1 node1
  5. myindex              1 r STARTED 16592755   1.4gb xx.xx.xx.2 node2
  6. myindex              1 p STARTED 16592755   1.4gb xx.xx.xx.1 node1
  7. myindex              3 r STARTED 16592009   1.4gb xx.xx.xx.2 node2
  8. myindex              3 p STARTED 16592033   1.4gb xx.xx.xx.1 node1
  9. myindex              0 r STARTED 16610776   1.3gb xx.xx.xx.2 node2
  10. myindex              0 p STARTED 16610776   1.3gb xx.xx.xx.1 node1
  11.    
  12. http://xx.xx.xx.1:9200/_cluster/reroute?explain
  13.    
  14. {
  15.     "commands" : [
  16.         {
  17.             "move" : {
  18.                 "index" : "myindex",
  19.                 "shard" : 1,
  20.                 "from_node" : "node1",
  21.                 "to_node" : "node2"
  22.             }
  23.         },
  24.         {
  25.             "allocate_replica" : {
  26.                 "index" : "myindex",
  27.                 "shard" : 1,
  28.                 "node" : "node1"
  29.             }
  30.         }
  31.     ]
  32. }
  33.    
  34. {
  35.     "decider": "same_shard",
  36.     "decision": "NO",
  37.     "explanation": "the shard cannot be allocated on the same node id [xxxxxxxxxxxxxxxxxxxxxx] on which it already exists"
  38. },
RAW Paste Data
Top