Skip to content

feat: Add configurable lease interval for crawler source#6432

Merged
graytaylor0 merged 1 commit into
opensearch-project:mainfrom
chrisale000:configurable-lease-interval
Jan 27, 2026
Merged

feat: Add configurable lease interval for crawler source#6432
graytaylor0 merged 1 commit into
opensearch-project:mainfrom
chrisale000:configurable-lease-interval

Conversation

@chrisale000

@chrisale000 chrisale000 commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds support for configurable lease interval in the crawler source plugin, allowing users to customize the leader scheduler's lease interval instead of using a hardcoded value.

Changes

  • Added getLeaseInterval() method to CrawlerSourceConfig interface with default value of 1 minute
  • Modified CrawlerSourcePlugin to use the configurable lease interval from the source configuration

Testing

  • Unit tests pass
  • Confirmed M365 maintained 1 minute lease interval.

Signed-off-by: Alexander Christensen alchrisk@amazon.com

This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.

Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
  default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
  from the source configuration

Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
* @return Duration for lease interval
*/
default Duration getLeaseInterval() {
return Duration.ofMinutes(1);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This default is a little low. The default is normally 10 minutes at this time I think.

@graytaylor0 graytaylor0 merged commit c0dba45 into opensearch-project:main Jan 27, 2026
49 of 52 checks passed
san81 pushed a commit to san81/data-prepper that referenced this pull request Jan 27, 2026
…project#6432)

This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.

Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
  default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
  from the source configuration

Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…project#6432)

This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.

Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
  default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
  from the source configuration

Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
Signed-off-by: Simon ELBAZ <elbazsimon9@gmail.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…project#6432)

This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.

Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
  default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
  from the source configuration

Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…project#6432)

This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.

Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
  default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
  from the source configuration

Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
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.

5 participants