# Node障害時、cluster.routing.allocation.excludeした際の挙動

**URL:** <https://discuss.elastic.co/t/node-cluster-routing-allocation-exclude/205987>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [October 31, 2019, 6:51am UTC](https://discuss.elastic.co/t/node-cluster-routing-allocation-exclude/205987 "2019-10-31T06:51:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ichirou](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@ichirou](https://discuss.elastic.co/u/ichirou)\
**Post date:** [October 31, 2019, 6:51am UTC](https://discuss.elastic.co/t/node-cluster-routing-allocation-exclude/205987/1 "2019-10-31T06:51:03Z")

</div>

Data NodeがNodeA、NodeB、NodeCの３つあるClusterがあり、NodeBが障害で使用不可になった場合、NodeA,CにあるReplicaがPrimaryとして振る舞うと認識しております。  
その際、クラスタ設定変更のcluster.routing.allocation.exclude.\_name: "NodeB"でNodeBをshardのアロケーションから外した場合はどのようになるのでしょうか？  
（前提：index設定はnumber\_of\_shards:1のnumber\_of\_replicas:1）

以下2つを想定しております。  
・ReplicaからPrimaryを生成  
・Replicaが1つのままで、Primaryとして振る舞い続ける

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 28, 2019, 6:51am UTC](https://discuss.elastic.co/t/node-cluster-routing-allocation-exclude/205987/2 "2019-11-28T06:51:15Z")

</div>

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