Describe the issue:
After the update to opensearch 2.19.0 I noticed that my one-node opensearch “cluster” is running in state “yellow” every morning.
Apparently this is caused by the “Top N queries”-feature and the resulting top_queries-YYYY.MM.DD-NNNNN indices which are created every night (with "number_of_replicas": "1").
I’ve adapted my index templates to also apply to the top_queries-* indexes but apparently this has no effect as new top_queries- are still created with "number_of_replicas": "1".
Could you increase the priority for testing purposes to, let’s say, 1000 (to make sure the template is applied, tho I don’t see a good reason why it shouldn’t be…)?
Hi there.
Unfortunately, I discovered same problem in upgrading from 2.15 to 2.19 .
From my perspective, this looks like a bug and specially it hitting one multiroles nodes. @Mantas have you please any additional reference to the issue/bug tracking? If not, no problem, I can create one, just let me know.
Best regards!
Thanks @mauno@LHozzan for pointing out the issue. Primary and replica count is defined in the top-queries-* index create request, so index templates of any priority will not override these values. Source code will need to be changed for this. We will post updates on the GitHub issue soon.