Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1885667

Summary: Performance tweaking for Elasticsearch
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: aos-bugs, ewolinet, jcantril, jolee, mifiedle, periklis, rbolling, stwalter
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: logging-exploration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Elasticsearch Operator would set the primary shard count equal to the number of data nodes in the cluster. Consequence: This caused very high sharding for large clusters and resulted in excessive synchronization of the cluster state across nodes leading to poor performance. Fix: The Elasticsearch Operator now sets the upper bounds of primary shards for an index at 5. Result: No matter how many data nodes are in the Elasticsearch cluster, EO will limit the number of primary shards for an index to 5 for better performance.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-25 20:21:05 UTC Type: ---
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: 1883444    
Bug Blocks:    

Comment 1 Jeff Cantrill 2020-10-07 13:11:42 UTC
this is not an immediate 4.6 blocker and can go out with a 4.6.z stream

Comment 2 Jeff Cantrill 2020-10-23 15:20:23 UTC
Setting UpcomingSprint as unable to resolve before EOD

Comment 5 Mike Fiedler 2020-11-13 01:05:00 UTC
Using elasticsearch operator 4.6.0-202011051050.p0 and clusterlogging operator 4.6.0-202011041933.p0 

I see the same issue as in https://bugzilla.redhat.com/show_bug.cgi?id=1883444#c23 and https://bugzilla.redhat.com/show_bug.cgi?id=1883444#c24

Initially the infra and app indices have 7 primary replicas on a 7 node ES cluster.   When the subsequent (e.g. infra-000002 and app-000002 ) indices are created, they have 5 primary replicas.  

Is it ok that the initial indices have n="number of ES nodes" replicas and subsequent indices are capped at 5?

Comment 7 ewolinet 2020-11-13 21:30:12 UTC
Opened https://github.com/openshift/elasticsearch-operator/pull/575 to address comment 5

Comment 10 Mike Fiedler 2021-01-19 18:07:33 UTC
Verified on logging/ES 4.6.0-202101162152.p0

No more than 5 primary replicas created regardless of ES cluster size.

Comment 12 errata-xmlrpc 2021-01-25 20:21:05 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 (OpenShift Container Platform 4.6.13 extras update), 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:0173