Skip to content

Conversation

@seanzatzdev
Copy link
Contributor

This PR modifies the max size limit on sampling configurations to be a function (1%) of a node's heap size. there is also a minimum default max size of 100kb.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the max size limit on sampling configurations to be dynamically calculated as 1% of a node's heap size instead of using a fixed 5GB limit, with a minimum floor of 100KB to ensure reasonable defaults for small heap environments.

  • Replaces static MAX_SIZE_LIMIT_GIGABYTES constant with heap-based percentage calculation
  • Introduces DEFAULT_MAX_SIZE_FLOOR constant for minimum size guarantee
  • Updates validation logic and test data generation to use dynamic heap-based limits

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
SamplingConfiguration.java Core implementation of heap-based size calculation and validation logic
SamplingConfigurationTests.java Updated test generation and validation to use dynamic heap limits
TransportPutSampleConfigurationActionTests.java Modified random test data generation to use fixed MB values
TransportDeleteSampleConfigurationActionTests.java Modified random test data generation to use fixed MB values
GetAllSampleConfigurationActionIT.java Modified random test data generation to use fixed MB values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@seanzatzdev seanzatzdev requested a review from Copilot October 31, 2025 21:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@seanzatzdev seanzatzdev marked this pull request as ready for review November 3, 2025 18:16
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Nov 3, 2025
@seanzatzdev seanzatzdev added >non-issue :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP and removed needs:triage Requires assignment of a team area label labels Nov 3, 2025
@seanzatzdev seanzatzdev requested a review from masseyke November 3, 2025 18:17
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Nov 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue Team:Data Management Meta label for data/management team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants