Skip to main content

The ingest engine is the only ingest

Prism used to read GitHub and Jira through a legacy lane: a hand-written module per source, run by its own Kubernetes Job and CronJob. Every source now arrives on the ingest engine instead. The engine is one walker, driven by a manifest document that describes the source. The ingest tick runs it for every context stream, GitHub and Jira included, and it is the one thing that writes a copied stream's tables.

The values that chose between the two are removed:

  • ingest.engine.mode
  • ingest.github.engineMode and ingest.jira.engineMode
  • ingest.engine.overrides
  • ingest.engine.parityRuns and ingest.engine.shadowRequestsPerMinute

The per-source prism-ingest github and prism-ingest jira ingest Jobs and CronJobs are gone with them. The upstream probes that feed the self test stay, as their own -check Job and CronJob.

This is not the same flip as taking a source live. That one turns a source from synthetic data to your real system.

Before you upgrade from off or shadow​

The chart refuses to render while any of the removed values is present in your values, at any value. That includes 1.0.0's defaults (mode: authoritative, overrides: {}, parityRuns: 3, shadowRequestsPerMinute: 0 and an empty engineMode on GitHub and Jira), so a values file copied from 1.0.0's values.yaml is refused too. Nothing is changed when the chart refuses, and the release you are running keeps running. If your values carry only those defaults, delete the keys and upgrade; nothing else changes.

If your install runs ingest.engine.mode: off or shadow, or sets ingest.github.engineMode or ingest.jira.engineMode, move onto the engine on the chart version you run now, so that version is still your rollback:

  1. In your values file, set ingest.engine.mode: authoritative (or delete the key; that is its default) and delete ingest.github.engineMode and ingest.jira.engineMode. Set sources.registry.enabled to true if it is false; step 4 needs it.
  2. If your Jira is Data Center or Server, set ingest.jira.deployment: data_center. See Cloud and Data Center.
  3. Run helm upgrade with that values file, on the same chart version.
  4. Open Admin → Context streams, press Copy now on your GitHub and Jira context streams, and check each one's Runs tab. The copy Copy now started is shown as Copy now, and it should end ok. Copy now runs on the ingest engine, so this proves the engine copies the stream.
  5. Delete every removed key from your values file, and upgrade to the new chart.

The engine continues from the progress the legacy lane recorded. Both lanes keep their progress in the same ingest_state row, so on a source the legacy lane has already ingested, the engine's first run is incremental and keeps every row. A full backfill happens only where no run of that source ever completed here.

With helm upgrade --reuse-values, the previous release's values come back even after you delete a key from your file, 1.0.0's defaults included, so the upgrade is refused. The release notes say what to pass instead, under "Upgrading: delete the removed chart values first".

The three modes, for one source​

off, shadow and authoritative are gone. Every source runs on the engine, which is what authoritative meant: the engine writes the real tables, and nothing else does. The steps above move an install that ran off or shadow.

Tables named <table>__shadow, which shadow wrote beside the real ones, are no longer written or read. The first time the ingest connects after the upgrade it drops the five that the GitHub and Jira legacy lanes also wrote (pull_requests, pr_reviews, github_issues, issue_pr_links and jira_issues). It leaves any other, which may hold the only copy of a snapshot's earlier rows; the release notes say how to keep or drop one.

When a shadow parity verdict will not clear​

This no longer applies. There is no shadow walk to compare against, so no parity verdict is written, and the self test no longer reports a parity streak or whether a flip is earned.