Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don’t close the ES index before updating settings #4858

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

WPprodigy
Copy link
Contributor

@WPprodigy WPprodigy commented Sep 12, 2023

The only settings that we auto-fix are dynamic settings, and we don’t need to close the index first before changing those (#, #, #). Closing/opening an index appears to cause quite a bit of stress on the clusters.

This was introduced in #3879. Before that the default was to not $close_first.

The only settings we auto-fix are dynamic settings, and we don’t need to close the index first before changing those. Closing/opening an index appears to cause quite a bit of stress on the clusters.
@WPprodigy WPprodigy requested a review from a team as a code owner September 12, 2023 21:37
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #4858 (3fcd4eb) into develop (787f7c2) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             develop    #4858   +/-   ##
==========================================
  Coverage      29.06%   29.06%           
  Complexity      4700     4700           
==========================================
  Files            276      276           
  Lines          20736    20736           
==========================================
  Hits            6027     6027           
  Misses         14709    14709           
Files Changed Coverage Δ
search/includes/classes/class-health.php 55.97% <100.00%> (ø)

@WPprodigy WPprodigy merged commit 41d9212 into develop Sep 12, 2023
42 checks passed
@WPprodigy WPprodigy deleted the fix/es-health-settings-repair branch September 12, 2023 22:03
WPprodigy added a commit that referenced this pull request Sep 12, 2023
The only settings we auto-fix are dynamic settings, and we don’t need to close the index first before changing those. Closing/opening an index appears to cause quite a bit of stress on the clusters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants