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

[Jobs] Change the shards configuration for the statistics indices #4055

Conversation

Desvelao
Copy link
Member

@Desvelao Desvelao commented Apr 20, 2022

Description

This PR modifies the default shards configuration for the statistics indices.

Changes

  • configuration:
    • shards: 1
    • replicas: 0
  • affected:
    • configuration in the creation of indices
    • initial default plugin configuration
    • getWzConfig route resolver
    • constant with the default configuration

Test

  • The initial configuration should display the settings as:
    • cron.statistics.shards: 1
    • cron.statistics.replicas: 0
  • The new statistics indices should be created with the new shards and replicas settings if there is no other configuration.

Closes #4053

…tistics` indices.

  - configuration:
    - shards: 1
    - replicas: 0
  - affected:
    - configuration in the creation of indices
    - initial default plugin configuration
    - `getWzConfig` route resolver
    - constant with the default configuration
@Desvelao Desvelao self-assigned this Apr 20, 2022
@Desvelao Desvelao changed the title [JOBS] Change the and configuration for the and indices [Jobs] Change the shards configuration for the statistics indices Apr 20, 2022
@Desvelao Desvelao requested a review from a team April 20, 2022 11:43
@Desvelao Desvelao added the type/enhancement Enhancement issue label Apr 20, 2022
@Desvelao Desvelao force-pushed the feat/4053-change-default-configuration-moniutoring-statistics-indices branch from e17f709 to 0bd5eb2 Compare April 20, 2022 12:39
@github-actions
Copy link
Contributor

Jest Test Coverage % values
Statements 4.04% ( 1476 / 36557 )
Branches 1.61% ( 459 / 28477 )
Functions 2.98% ( 266 / 8935 )
Lines 4.09% ( 1428 / 34948 )

@Desvelao Desvelao added the 4.3 label Apr 25, 2022
Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Code review: passed.
  • Test: passed.

@Desvelao Desvelao merged commit 3a08e58 into 4.3-7.10 Apr 27, 2022
@Desvelao Desvelao deleted the feat/4053-change-default-configuration-moniutoring-statistics-indices branch April 27, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Enhancement issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration change for wazuh-statistics and wazuh-monitoring indexes
2 participants