0

データベース内のレコードの構造が同一である複数の組織があります。各組織のエイリアス インデックスとルーティング機能を備えた ES を使用しています。ここで、ES インデックスをクリアしてクリーンな状態で開始すると、検索レコードが ES から適切に取得されます。しかし、複数の組織を追加すると、ES の動作がおかしくなりました。別の組織のデータを送信している場合もあれば、単にデータを抑圧しているだけの場合もあります。さらに驚くべきことに、検索さえされていないレコードのデータを送信している場合があります。「john」は「Ringo」を返し、「Mick」を介して検索すると「John」が返されます。

さらなる調査:

  1. 1 つの組織のみをインデックスに登録します。その組織のデータが来ています。
  2. 別の 1 つの組織にインデックスを付けます。その組織のデータも来ています。
  3. 3 番目の組織にインデックスを付けます。最初の組織 ! のデータが失われました。

画像 :

  1. きれいな状態: https://imageshack.com/i/idNW3QVCp
  2. 1つの組織で。索引付け中:
  3. 別の組織と。索引付け中:
  4. 3番目の組織で。インデックスであること:
  5. Sf2 からのログ:

ES サーバーのステータス:

{
  "_shards" : {
    "total" : 10,
    "successful" : 5,
    "failed" : 0
  },
  "indices" : {
    "organizations" : {
      "index" : {
        "primary_size_in_bytes" : 54928,
        "size_in_bytes" : 54928
      },
      "translog" : {
        "operations" : 106
      },
      "docs" : {
        "num_docs" : 50,
        "max_doc" : 73,
        "deleted_docs" : 23
      },
      "merges" : {
        "current" : 0,
        "current_docs" : 0,
        "current_size_in_bytes" : 0,
        "total" : 0,
        "total_time_in_millis" : 0,
        "total_docs" : 0,
        "total_size_in_bytes" : 0
      },
      "refresh" : {
        "total" : 125,
        "total_time_in_millis" : 204
      },
      "flush" : {
        "total" : 0,
        "total_time_in_millis" : 0
      },
      "shards" : {
        "0" : [ {
          "routing" : {
            "state" : "STARTED",
            "primary" : true,
            "node" : "ficq9zDSRM2HJTGLk2BZ7g",
            "relocating_node" : null,
            "shard" : 0,
            "index" : "organizations"
          },
          "state" : "STARTED",
          "index" : {
            "size_in_bytes" : 15923
          },
          "translog" : {
            "id" : 1432033150513,
            "operations" : 42
          },
          "docs" : {
            "num_docs" : 21,
            "max_doc" : 21,
            "deleted_docs" : 0
          },
          "merges" : {
            "current" : 0,
            "current_docs" : 0,
            "current_size_in_bytes" : 0,
            "total" : 0,
            "total_time_in_millis" : 0,
            "total_docs" : 0,
            "total_size_in_bytes" : 0
          },
          "refresh" : {
            "total" : 25,
            "total_time_in_millis" : 114
          },
          "flush" : {
            "total" : 0,
            "total_time_in_millis" : 0
          }
        } ],
        "1" : [ {
          "routing" : {
            "state" : "STARTED",
            "primary" : true,
            "node" : "ficq9zDSRM2HJTGLk2BZ7g",
            "relocating_node" : null,
            "shard" : 1,
            "index" : "organizations"
          },
          "state" : "STARTED",
          "index" : {
            "size_in_bytes" : 123
          },
          "translog" : {
            "id" : 1432033150524,
            "operations" : 0
          },
          "docs" : {
            "num_docs" : 0,
            "max_doc" : 0,
            "deleted_docs" : 0
          },
          "merges" : {
            "current" : 0,
            "current_docs" : 0,
            "current_size_in_bytes" : 0,
            "total" : 0,
            "total_time_in_millis" : 0,
            "total_docs" : 0,
            "total_size_in_bytes" : 0
          },
          "refresh" : {
            "total" : 25,
            "total_time_in_millis" : 1
          },
          "flush" : {
            "total" : 0,
            "total_time_in_millis" : 0
          }
        } ],
        "2" : [ {
          "routing" : {
            "state" : "STARTED",
            "primary" : true,
            "node" : "ficq9zDSRM2HJTGLk2BZ7g",
            "relocating_node" : null,
            "shard" : 2,
            "index" : "organizations"
          },
          "state" : "STARTED",
          "index" : {
            "size_in_bytes" : 4782
          },
          "translog" : {
            "id" : 1432033150529,
            "operations" : 8
          },
          "docs" : {
            "num_docs" : 8,
            "max_doc" : 8,
            "deleted_docs" : 0
          },
          "merges" : {
            "current" : 0,
            "current_docs" : 0,
            "current_size_in_bytes" : 0,
            "total" : 0,
            "total_time_in_millis" : 0,
            "total_docs" : 0,
            "total_size_in_bytes" : 0
          },
          "refresh" : {
            "total" : 25,
            "total_time_in_millis" : 11
          },
          "flush" : {
            "total" : 0,
            "total_time_in_millis" : 0
          }
        } ],
        "3" : [ {
          "routing" : {
            "state" : "STARTED",
            "primary" : true,
            "node" : "ficq9zDSRM2HJTGLk2BZ7g",
            "relocating_node" : null,
            "shard" : 3,
            "index" : "organizations"
          },
          "state" : "STARTED",
          "index" : {
            "size_in_bytes" : 123
          },
          "translog" : {
            "id" : 1432033150518,
            "operations" : 0
          },
          "docs" : {
            "num_docs" : 0,
            "max_doc" : 0,
            "deleted_docs" : 0
          },
          "merges" : {
            "current" : 0,
            "current_docs" : 0,
            "current_size_in_bytes" : 0,
            "total" : 0,
            "total_time_in_millis" : 0,
            "total_docs" : 0,
            "total_size_in_bytes" : 0
          },
          "refresh" : {
            "total" : 25,
            "total_time_in_millis" : 0
          },
          "flush" : {
            "total" : 0,
            "total_time_in_millis" : 0
          }
        } ],
        "4" : [ {
          "routing" : {
            "state" : "STARTED",
            "primary" : true,
            "node" : "ficq9zDSRM2HJTGLk2BZ7g",
            "relocating_node" : null,
            "shard" : 4,
            "index" : "organizations"
          },
          "state" : "STARTED",
          "index" : {
            "size_in_bytes" : 33977
          },
          "translog" : {
            "id" : 1432033150546,
            "operations" : 56
          },
          "docs" : {
            "num_docs" : 21,
            "max_doc" : 44,
            "deleted_docs" : 23
          },
          "merges" : {
            "current" : 0,
            "current_docs" : 0,
            "current_size_in_bytes" : 0,
            "total" : 0,
            "total_time_in_millis" : 0,
            "total_docs" : 0,
            "total_size_in_bytes" : 0
          },
          "refresh" : {
            "total" : 25,
            "total_time_in_millis" : 78
          },
          "flush" : {
            "total" : 0,
            "total_time_in_millis" : 0
          }
        } ]
      }
    }
  }
}

別の組織の場合、ES が既存のエイリアスのデータを上書きしているようです。インデックスされています。しかし、それは取引ブレーカーです。ご意見をお聞かせください。

4

0 に答える 0