Skip to content

Distributed Ingestion CoordinatorΒ #4010

Description

@makr-code

Context

This issue implements the roadmap item 'Distributed Ingestion Coordinator' for the ingestion domain. It is sourced from the consolidated roadmap under 🟑 Medium Priority β€” Near-term (v1.5.0 – v1.8.0) and targets milestone v1.8.0.

Primary detail section: Distributed Ingestion Coordinator

Goal

Deliver the scoped changes for Distributed Ingestion Coordinator in src/ingestion/ and complete the linked detail section in a release-ready state for v1.8.0.

Detailed Scope

Distributed Ingestion Coordinator

Priority: Medium
Target Version: v1.8.0

Enable IngestionManager to distribute source processing across multiple ThemisDB nodes so that large ingestion jobs are not bottlenecked on a single instance. The coordinator partitions sources and page ranges across worker nodes and aggregates IngestionReport results.

Implementation Notes:

  • Add IngestionCoordinator class in ingestion_coordinator.cpp; acts as the leader that partitions work via consistent hashing of source_id across available worker nodes.
  • Workers receive their assigned sources via a gRPC IngestRequest (new proto definition in proto/ingestion_coordinator.proto); they run the existing IngestionManager::ingestAll() locally and stream progress events back to the coordinator.
  • IngestionCheckpointStore must switch to a shared backend (Redis or the ThemisDB checkpoint collection) so that all workers see the same incremental progress state.
  • Leader election uses a lightweight lease mechanism (TTL-based lock in the checkpoint collection) to avoid split-brain during coordinator failover.

Performance Targets:

  • Linear throughput scaling to at least 4 worker nodes (β‰₯ 3.5Γ— aggregate throughput vs single node) for API and filesystem sources.
  • Coordinator overhead (partitioning + progress aggregation) ≀ 5 % of total ingestion wall-clock time.

Acceptance Criteria

  • Add IngestionCoordinator class in ingestion_coordinator.cpp; acts as the leader that partitions work via consistent hashing of source_id across available worker nodes.
  • Workers receive their assigned sources via a gRPC IngestRequest (new proto definition in proto/ingestion_coordinator.proto); they run the existing IngestionManager::ingestAll() locally and stream progress events back to the coordinator.
  • IngestionCheckpointStore must switch to a shared backend (Redis or the ThemisDB checkpoint collection) so that all workers see the same incremental progress state.
  • Leader election uses a lightweight lease mechanism (TTL-based lock in the checkpoint collection) to avoid split-brain during coordinator failover.
  • Linear throughput scaling to at least 4 worker nodes (β‰₯ 3.5Γ— aggregate throughput vs single node) for API and filesystem sources.
  • Coordinator overhead (partitioning + progress aggregation) ≀ 5 % of total ingestion wall-clock time.

Relationships

References

  • src/ROADMAP.md
  • src/ingestion/FUTURE_ENHANCEMENTS.md#distributed-ingestion-coordinator
  • Source key: roadmap:179:ingestion:v1.8.0:distributed-ingestion-coordinator

Generated from the consolidated source roadmap. Keep the roadmap and issue in sync when scope changes.

Activity

  1. added this to the v1.8.0 milestone on Mar 12, 2026
  2. added
    type:feature
    priority:medium
    status:open
    area:ingestion
    on Mar 12, 2026
  3. added
    epic
    on Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:ingestionepicpriority:mediumstatus:opentype:feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions