Bug 1920215

Summary: Elasticsearch Operator performs unnecessary index template seeding which can impact cluster performance
Product: OpenShift Container Platform Reporter: ewolinet
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: medium Docs Contact: Rolfe Dlugy-Hegwer <rdlugyhe>
Priority: high    
Version: 4.6.zCC: aos-bugs, rdlugyhe, vimalkum
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: logging-exploration
Fixed In Version: Doc Type: Enhancement
Doc Text:
[discrete] [id="openshift-logging-5-0-minimize-updates-to-rollover-index-templates"] // https://bugzilla.redhat.com/show_bug.cgi?id=1920215 === Minimize updates to rollover index templates With this enhancement, the Elasticsearch Operator only updates its rollover index templates if they have different field values. Index templates have a higher priority than indices. When the template is updated, the cluster prioritizes distributing them over the index shards, impacting performance. To minimize Elasticsearch cluster operations, the operator only updates the templates when the number of primary shards or replica shards changes from what is currently configured. (link:https://bugzilla.redhat.com/show_bug.cgi?id=1920215[*1920215*])
Story Points: ---
Clone Of:
: 1923791 (view as bug list) Environment:
Last Closed: 2021-02-24 11:22:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1923791    

Description ewolinet 2021-01-25 19:52:14 UTC
Description of problem:
Index Templates are high priority items in the Elasticsearch cluster, and constantly updating them (even when nothing has changed) can cause the cluster to deprioritize what it is currently doing to ensure that the templates are replicated across the cluster.

Version-Release number of selected component (if applicable):
4.6.z

How reproducible:
Always

Steps to Reproduce:
1. Deploy EO
2. Create es CR with index management section (required)
3. Observe in the logs ES creating/updating the ocp-gen-* index templates constantly

Actual results:
Index Templates are always updated

Expected results:
Templates are only updated when a change is necessary

Comment 1 Anping Li 2021-02-09 08:07:40 UTC
Verified on elasticsearch-operator.5.0.0-45.

Comment 5 errata-xmlrpc 2021-02-24 11:22:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Errata Advisory for Openshift Logging 5.0.0), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0652