Elastic Search v7.17.1 Alias Filtering Performance Issues

Hello,

I have recently started using alias filtering with our application and have seen some performance issues. I am using elastic v7.17.1 on a 12 node cluster.

The alias looks like the following (the array in terms contains 391 items):

{
  "myIndex" : {
    "aliases" : {
      "myAlias" : {
        "filter" : {
          "bool" : {
            "filter" : {
              "terms" : {
                "code" : [
                  "abc",
                  "xyz",
                  etc...
                ]
              }
            }
          }
        }
      }
    }
  }
}

When this new alias is used, I see increased latency and request times on the index:


When I revert the change and go back to using a non-filtered alias, the metrics drop back down. Is there anything with this alias filter that would cause an issue with Elasticsearch v7.17.1?

I also observed that 4 of the 12 nodes in the cluster had increased CPU utilization and request rates. That seems to be the reason for the overall latency increase, but I am not sure why this filter alias would cause a change like that. The other 8 nodes remained under utilized.

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