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

[logcli] fixed query command that is run against user's bucket with TSDB index enabled #9597

Merged

Conversation

vlad-diachenko
Copy link
Contributor

@vlad-diachenko vlad-diachenko commented Jun 1, 2023

What this PR does / why we need it:
set TSDB shipper mode to ReadOnly and disabled indexGatewayClient during local query run. Also, I increase index downloading timeout to 1m because the users run the query from local machines that not always have more than 100Mbps

Which issue(s) this PR fixes:
Fixes #9555

Special notes for your reviewer:
Unfortunately, we do not have similar tests and test architecture to cover it with unit tests properly.

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

…ing local query run. Also, increase index downloading timeout to 1m because the users run the query from local machines that not always have more than 100Mbps
@vlad-diachenko vlad-diachenko requested a review from a team as a code owner June 1, 2023 14:46
Copy link
Contributor

@MichelHollands MichelHollands left a comment

Choose a reason for hiding this comment

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

Nice find!

@vlad-diachenko vlad-diachenko merged commit 3c52034 into main Jun 6, 2023
@vlad-diachenko vlad-diachenko deleted the vlad.diachenko/fixed_logcli_local_query_run_for_tsdb branch June 6, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[logcli] logcli should use Read-Only mode when it works with TSDB index
2 participants