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

Issue #3027 Change the way how indices with storage usage is peeking during billing calculation #3110

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

SilinPavel
Copy link
Member

@SilinPavel SilinPavel commented Feb 24, 2023

Related to #3027
Previously billing agent uses index name pattern to match all indices in elasticsearch with particular name, like *cp-s3-file-1.
Such approach may lead to incorrect billing data calculation if there are more that 1 index for such pattern.
This PR adds logic to firstly check if we actually have an alias for such index and if we have - use an index attached to this alias.
In case we don't have an alias or there is no indices attached we will use previous approach.

@SilinPavel SilinPavel changed the title issue #3027 Change the way how indices with storage usage is peeking during billing calculation Issue #3027 Change the way how indices with storage usage is peeking during billing calculation Feb 24, 2023
@SilinPavel SilinPavel force-pushed the issue_3027_fix_billing_calculation branch from 4be17cf to c47e4dd Compare February 24, 2023 12:53
@mzueva mzueva merged commit 0f623f8 into develop Feb 28, 2023
mzueva pushed a commit that referenced this pull request Mar 15, 2023
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.

2 participants