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

Update indexer-ism-init.sh #2726

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

AlexRuiz7
Copy link
Member

Related issue
wazuh/wazuh-indexer#87

Description

Fixes yellow cluster status on single node deployment caused by ISM plugin's configuration indices having 1 replica index.

This PR adds an index template and cluster's settings to disable replicas on ISM plugin internal indices.

".opendistro-ism-managed-index-history-*",
".opendistro-ism-config",
".opendistro-job-scheduler-lock"

Logs example

health status index                                                   uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .opendistro-ism-managed-index-history-2023.12.27-000002 hNNlPdrTQxK_LV6rgiZ_JA   1   0          0            0       208b           208b
green  open   .opensearch-observability                               iM0dAYy_S1WbqtozBWKQ8w   1   0          0            0       208b           208b
green  open   .plugins-ml-config                                      cTgc6u4STOudZoopKIL6mw   1   0          1            0      3.9kb          3.9kb
green  open   .opensearch-sap-log-types-config                        ECAdYvtKR0OKANRTXFOP_g   1   0        440            0    241.4kb        241.4kb
green  open   .opendistro-ism-config                                  HbJ1aIzhTG-lbz7wvV1fpg   1   0          7           16     94.4kb         94.4kb
green  open   .opendistro-ism-managed-index-history-2023.12.27-1      4hC_5GiUR5mxo70wrq3VWw   1   0          1            0      8.4kb          8.4kb
green  open   .opendistro-job-scheduler-lock                          tMPAyL73S5Oi2EoVcGXEAw   1   0          2           10     13.1kb         13.1kb
green  open   .opendistro_security                                    jd9XbtApSZKybI0YUjVDrg   1   0         10            1     45.8kb         45.8kb
green  open   .kibana_1                                               o7L2KqA5SA2mPW4QDRLOjA   1   0          7            0     17.2kb         17.2kb
green  open   .opensearch-notifications-config                        rRlgE6-sQmK7Et-rM8oPbg   1   0          0            0       208b           208b

{
  "cluster_name": "wazuh-cluster",
  "status": "green",
  "timed_out": false,
  "number_of_nodes": 1,
  "number_of_data_nodes": 1,
  "discovered_master": true,
  "discovered_cluster_manager": true,
  "active_primary_shards": 21,
  "active_shards": 21,
  "relocating_shards": 0,
  "initializing_shards": 0,
  "unassigned_shards": 0,
  "delayed_unassigned_shards": 0,
  "number_of_pending_tasks": 0,
  "number_of_in_flight_fetch": 0,
  "task_max_waiting_in_queue_millis": 0,
  "active_shards_percent_as_number": 100
}

Tests

  • Build the package in any supported platform
    • Linux
    • Windows
    • macOS
    • Solaris
    • AIX
    • HP-UX
  • Package installation
  • Package upgrade
  • Package downgrade
  • Package remove
  • Package install/remove/install
  • Change added to CHANGELOG.md
  • Tests for Linux RPM
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • %files section is correctly updated if necessary
  • Tests for Linux deb
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • Package install/remove/install
    • Package install/purge/install
    • Check file permissions after installing the package
  • Tests for macOS
    • Test the package from macOS Sierra to Mojave
  • Tests for Solaris
    • Test the package on Solaris 10
    • Test the package on Solaris 11
    • Check file permissions on Solaris 11 template
  • Tests for IBM AIX
    • %files section is correctly updated if necessary
    • Check the changes from IBM AIX 5 to 7

Fixes yellow cluster status on single node deployment caused by ISM plugin's configuration indices having 1 replica index.
@AlexRuiz7 AlexRuiz7 self-assigned this Dec 27, 2023
@AlexRuiz7 AlexRuiz7 linked an issue Dec 27, 2023 that may be closed by this pull request
@AlexRuiz7 AlexRuiz7 merged commit dc6e1cb into 4.8.0 Dec 27, 2023
4 checks passed
@AlexRuiz7 AlexRuiz7 deleted the 86-ism-fix-yellow-cluster-status branch December 27, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yellow cluster status on single-node fresh install
2 participants