How to add back a node after excluding it from cluster

I have used this command to exclude one of my node from my cluster:
PUT _cluster/settings { "transient": {"cluster": {"routing": {"allocation.exclude": {"_name": "node_2"}}}} }

it works as expected, but when i use this command to add it back to the cluster, nothing happen:
PUT _cluster/settings { "transient": {"cluster": {"routing": {"allocation.include":{"_name": "node_2"}}}} }

Here is the response:
{ "acknowledged": true, "persistent": {}, "transient": { "cluster": { "routing": { "allocation": { "include": { "_name": "node_2" } } } } } }

I have checked the cluster health, node status, index status
it all show that node_2 still be excluded.
Please someone show me what i'm missing?
Thank you.

You need to do this:

PUT _cluster/settings
{
"transient": {"cluster": {"routing": {"allocation.exclude": {"_name": ""}}}}
}

I have tried yours, but the problem is remain.
There are no shards allocated in node_2.


And i still wonder why node_1 just get 3 shards?
Why it isn't allocated 13 shards as master node?

i have not created any index in the cluster:
yellow open .monitoring-kibana-2-2017.06.25 pkBxMbYgQnayRCB-XdbQ3A 1 1 92 0 60.3kb 60.3kb yellow open .monitoring-es-2-2017.06.19 mqwa0REiTAqfgDFIUzfebQ 1 1 16068 66 8.3mb 8.3mb green open .triggered_watches 08Nz7-xnRr2elqI5f3zsEQ 1 1 16 0 11.5kb 5.7kb yellow open .monitoring-es-2-2017.06.18 WUKq6IsvQ6KA8nYsPW-0MQ 1 1 528 128 734.8kb 734.8kb yellow open .monitoring-alerts-2 1IHil0cWTFCpwy7AAS1f0A 1 1 1 0 13kb 13kb yellow open .monitoring-es-2-2017.06.25 ZUPSHhcJTwWR1AwNL0gLzw 1 1 3132 28 3.5mb 3.5mb yellow open .monitoring-kibana-2-2017.06.19 TZYUwod1TYu-FLP_yfedIg 1 1 788 0 246.5kb 246.5kb yellow open .monitoring-kibana-2-2017.06.18 xD7oxXgKRzGSNB3SnpBacw 1 1 72 0 132kb 132kb yellow open .watcher-history-3-2017.06.19 cusiT0rfSYi90KX_jYxyCQ 1 1 529 0 541.1kb 541.1kb yellow open .kibana X_bQIOejQT6OaZPtp6D3Qg 1 1 1 0 3.8kb 3.8kb yellow open .watches WXAzxF_ETey-ygSQrVNOlA 1 1 4 0 46.6kb 46.6kb green open .watcher-history-3-2017.06.25 PAzIBgLLRFi1lgS6LyBrSQ 1 1 92 0 301.7kb 124.3kb yellow open .monitoring-data-2 SAnxNWXjT4uIErqaIuXL2w 1 1 6 2 22.9kb 22.9kb yellow open .watcher-history-3-2017.06.18 mMUB5LpVTl-H8kio42PdGw 1 1 28 0 68kb 68kb

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.