LoginSignup
4
4

More than 5 years have passed since last update.

ElasticsearchのYellow状態の意味

Posted at

Yellowはそんなに単純じゃなかった

yellow means that the primary shard is allocated but replicas are not
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html

Yellowとは、primaryは配置されているが、replicaが配置されていない状態である。

この説明文を元にCluster statusをモニタリングすると、Yellowが出るわ出るわ

replicaの数はゼロなのに!!

ソースコードを拝見

In case of index creation, snapshot restore or index shrinking, which are unexceptional events in the cluster lifecycle, cluster health should not turn RED for the time where primaries are still in the initializing state but go to YELLOW instead.

はい、他にもありました。

「インデックス作成時、スナップショット(バックアップ)リストア時、インデックスの縮小時はYellowです。」

なるほど・・・

Yellowになる時

  • replicaが配置されていない時
  • インデックス作成時
  • スナップショット(バックアップ)リストア時
  • インデックスの縮小時

Yellowになる間隔

  • インデックス作成時
    • 400ms ~ 600ms
  • リストア、縮小
    • インデックスのサイズによる
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4