Skip to content

Conversation

@anggerdeni
Copy link

What this PR does / why we need it:

Add the ability to specify container lifecycle in index-gateway container. Quoting another PR for some background information :

The reason for it is that, with a few queries, the index-gateway pods run out of memory, and on top of setting a timeout for the queries (query_timeout), we also want to clean up the tsdb-cache folder on restarts of the pods.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

@anggerdeni anggerdeni requested a review from a team as a code owner October 23, 2025 03:14
@CLAassistant
Copy link

CLAassistant commented Oct 23, 2025

CLA assistant check
All committers have signed the CLA.

@anggerdeni anggerdeni force-pushed the feature/helm-add-lifecycle-for-index-gateway branch from b8263f7 to 5920524 Compare October 23, 2025 03:14
Copy link
Contributor

@jkroepke jkroepke left a comment

Choose a reason for hiding this comment

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

LGTM. @anggerdeni please update the branch.

ivkalita and others added 2 commits October 27, 2025 08:47
… processsing (grafana#19505)

Change streamsResultBuilder.CollectRecord() from row-by-row to column-by-column iteration. This better aligns with Arrow's columnar memory layout, improving CPU cache locality by reading contiguous memory regions.

I also remove IsValid checks given that IsNull checks are present. IsValid seems to be an exact opposite of IsNull (based on this code).

The slices and label builders for intermediate rows data are reused between CollectRecord.
@anggerdeni anggerdeni force-pushed the feature/helm-add-lifecycle-for-index-gateway branch from f4db0fc to 81c6c80 Compare October 27, 2025 01:50
@anggerdeni
Copy link
Author

Thank you @jkroepke !
I've updated the branch

Copy link
Contributor

@jkroepke jkroepke left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
Copy link
Contributor

@Jayclifford345 Jayclifford345 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: J Stickler <julie.stickler@grafana.com>
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.

6 participants