Aspects data pipeline: Vector or Ralph

How to choose between Vector and Ralph for the Aspects xAPI pipeline in Open edX, what each needs from your ClickHouse setup, and what to confirm before you change the default.

On this page

Aspects data pipeline: Vector or Ralph, and which one your platform needs

If you run Aspects on an Open edX platform, the short answer is that Vector is the default pipeline from Aspects v4 onward, and you should keep Ralph only when you have a specific reason to. Before you change anything, confirm which Aspects version you run and which pipeline your deployment currently uses, because the choice affects the ClickHouse settings, the containers you operate and the upgrade path. Treat the decision as part of the platform design, not a detail to settle after go-live.

The pipeline has a clear role. The event-routing-backends plugin captures tracking logs from the LMS and converts them into xAPI statements. Those statements are stored in a ClickHouse database through either Ralph or Vector, and Superset dashboards read from ClickHouse to show course team and analyst reports. The ingestion component is the only part of this chain you choose, so it is where the risk of a mismatch sits. Per the Aspects overview, the chain runs through these named components, which is the vocabulary you should use with your team and any partner you hire.

Ask your Aspects deployment team to confirm three things in writing: the Aspects version in use, the pipeline component currently enabled, and whether any custom event sinks or non-default ClickHouse tables depend on it. If you are on an older release that still runs Ralph, weigh a migration against the value of staying put, and plan the change as a scheduled piece of work with a tested rollback. The sibling pages on ClickHouse sizing and xAPI forwarding to an external LRS cover the database and the parallel routing options in more detail.

How tracking logs reach Superset through Aspects

The flow starts in the LMS, where edx-platform writes tracking logs and the event-routing-backends plugin converts them into xAPI statements. Those statements leave the LMS server boundary and enter the analytics stack, where either Vector or Ralph carries them into ClickHouse. Superset then queries ClickHouse to render the Aspects dashboards. Check which pipeline component sits on each side of the boundary, since that determines where credentials, network rules and retention settings must be configured.

Tracking logs flow from the LMS through xAPI into ClickHouse and Superset.

Vector or Ralph: how each fits your platform

A new Aspects install starts from the default. The Aspects overview describes the chain: tracking logs are captured as xAPI statements, stored in ClickHouse through Ralph or Vector, and presented in Superset. Vector is the default from Aspects v4, so a new site has fewer choices to make, but it still must confirm the release it installs and the settings that point the pipeline at its ClickHouse instance.

  • Version check: Confirm the Aspects release you are installing is v4 or later so the configuration you edit matches the default pipeline.
  • Chain trace: Follow one test learner action from the LMS through the event-routing-backends plugin into ClickHouse and then into a Superset chart.
  • Database setup: Create the ClickHouse database and users that Aspects expects, with credentials separate from the LMS database.
  • Secrets: Keep ClickHouse and pipeline credentials in your secrets store and out of plain configuration files.
  • Operations baseline: Record the running component, its version and where its logs go before you open dashboards to course teams.

Compare event counts in ClickHouse against a controlled test course before you release any dashboard.

Pipeline options and when each fits

This table compares four ways to handle Aspects xAPI events: keeping Ralph, moving to Vector, running both during a transition, or forwarding to an external LRS. Read each row against your current Aspects version, your existing settings and the team that will own the pipeline after go-live. The main takeaway is that the choice changes which settings and database objects you touch, so confirm the current state of your installation before choosing.

OptionWhen it fitsWhat it changesWhat to confirm
Keep RalphYour installation already runs Ralph and works, and you need to delay a change until a planned upgrade window.Little changes day to day. You keep the existing Ralph service, its configuration and its place in the event path.Whether your Aspects version still supports Ralph as configured, and how long your team will maintain it.
Move to VectorYou are on Aspects v4 or later, where Vector is the default, and you want the standard path with fewer custom changes.Tracking logs are routed through Vector into ClickHouse. Ralph-specific settings and processes are retired after cutover.Your exact Aspects release, the Vector settings in your Tutor configuration, and whether any custom event routing depends on Ralph.
Run both during a transitionYou need to compare event counts or dashboard results before retiring the old path, and can afford duplicate processing for a period.Events may be written by two pipelines at once, so you must check for duplicate rows and confirm which tables the dashboards read.How long both paths will run, who signs off the comparison, and how duplicate events will be detected and removed.
Forward to an external LRS insteadYour organization already has a learning record store and needs xAPI statements in that system, with or without Aspects dashboards.Event-routing-backends sends statements to your LRS. Aspects dashboards depend on the ClickHouse path, so the two designs must be planned together.Which events the LRS must receive, whether Aspects remains in use, and the setup detailed in the sibling page on forwarding xAPI events to an external LRS.

How to switch or confirm the Aspects pipeline

This sequence confirms which Aspects pipeline your Open edX site runs, backs up the analytics data and settings, makes the change in staging, and checks that statements reach ClickHouse and dashboards refresh before production is touched.

  1. Confirm the Aspects release and Tutor setup

    Record the Open edX release your LMS runs, the Aspects version installed, and the Tutor version that manages the deployment. Confirm which pipeline is currently active, Vector or Ralph, by reading the Tutor configuration and the running services rather than relying on memory or an old runbook. Confirm the Aspects v4 default behavior against the Aspects documentation for your release. The check is a written inventory of versions and the active pipeline, signed off by the platform owner before any change is planned.

  2. Back up ClickHouse and platform settings

    Take a verified backup of the ClickHouse database that holds the Aspects tables, and export the Tutor configuration and any plugin settings that control the event pipeline. Store the copies outside the cluster that will be changed. Confirm the backup can be restored by restoring it into a scratch environment and querying row counts for the main event tables. Backup tooling and retention are set by your own ClickHouse setup, so confirm those with your database owner. The check is a restored copy that returns the same counts as the source.

  3. Review the pipeline setting and schema changes

    Identify the pipeline setting in your Tutor configuration and the Aspects documentation for your release, then list every ClickHouse database or table change that the switch requires. Compare the schema the target pipeline expects with the schema currently in place, and note any migration steps, dbt transformations or dashboard datasets that depend on the existing tables. Confirm exact configuration key names against the Aspects documentation for your version before editing anything. The check is a written change plan that names each setting, each schema difference and each dependent dashboard.

  4. Apply the change in staging

    Make the pipeline change in a staging environment built from the same Tutor version and configuration as production. Apply any approved schema or database changes in the order the change plan lists, and restart the affected services through Tutor. Keep a record of every command and file edit so the production change can repeat it exactly. The check is a staging platform where the new pipeline service starts cleanly and no errors appear in its logs during a learner activity test.

  5. Verify statements arrive in ClickHouse

    Generate known learner and instructor activity in staging, such as enrolling, opening a unit and submitting a problem. Then query ClickHouse for the statements those actions should produce and compare counts and timestamps with the expected activity. Check that pipeline errors are absent from the service logs and that no event sits in a backlog. The check is a matching set of statements in ClickHouse for each test action, with no unexplained gaps or duplicates.

  6. Confirm dashboards refresh

    Open the Aspects Superset dashboards in staging and confirm that the test activity appears in the charts after the scheduled refresh runs. Confirm that the datasets still point at the right ClickHouse tables and that access rules for course team roles behave as they did before the change. Record any chart that fails so the owner can fix it before promotion. The check is a dashboard view that shows the test activity and no broken charts.

  7. Promote the change to production

    Schedule the production change in a window agreed with the platform owner and course team, then repeat the staging steps exactly as recorded. Run the same verification queries and dashboard checks in production, and keep the backup available until the results are confirmed. Document the final pipeline, versions and any follow-up tasks in the runbook. The check is a production record showing the active pipeline, passing verification queries and dashboards that refresh with new activity.

Security and operations to plan around the pipeline

The pipeline moves learner event data from the LMS into a ClickHouse store that serves dashboards, so every hop is a place where access, retention or loss can go wrong. The cards below cover the decisions to settle before go-live and the checks to repeat after each upgrade or configuration change.

ClickHouse credential handling

The Vector or Ralph service writes to ClickHouse with its own database user, and Superset reads with another. Give each its own account with the narrowest grants that work, store the passwords in a secrets manager rather than in plain Tutor configuration files, and record who can read those secrets. Confirm how credentials are rotated and whether the rotation restarts the pipeline services.

Network paths from the LMS

Decide which hosts may open connections to the ClickHouse port and in which direction. The LMS side should reach only the ingest endpoint of the pipeline, not the analytics database itself. Restrict firewall rules and private network segments to those paths, and test them from each host in the chain, including after a Kubernetes or container network change.

Log and backup retention

Tracking logs, pipeline logs and ClickHouse backups each have their own retention needs, and they rarely match. Write down how long raw event data is kept, how long dashboards need history, and who approves a deletion. Ask whether the chosen ClickHouse setup supports tested backups and restores, and confirm the restore time your course teams can accept.

Access to pipeline logs

Pipeline logs can include event payloads, usernames, course identifiers and error text that quotes learner data. Limit read access to the operators who support the pipeline, keep it separate from general LMS log access, and check that log shipping does not copy these logs to tools with wider audiences. Review who holds access at each platform release.

Monitoring for dropped events

A pipeline can fail quietly. The LMS keeps running while statements stop reaching ClickHouse, and dashboards show stale or partial numbers without an error. Set alerts on the gap between events emitted and rows stored, on ingest errors, and on the age of the newest row. Test the alert by stopping the pipeline in a non-production environment.

Keeping analytics off LMS servers

Run the pipeline and the analytics database on hosts separate from the LMS and its workers, so that heavy queries and ingest bursts do not slow learners. Size these hosts for the event volume you expect, and confirm the separation holds in your deployment plan. Revisit the decision when the platform scales or when course teams start running large reports.

Aspects overview

Questions teams ask before changing the Aspects pipeline

Can our own team switch the Aspects pipeline without a partner?

Yes, if your team already runs Open edX with Tutor, has someone comfortable with your container or Kubernetes setup, and has worked with ClickHouse before. The switch itself is a settings change plus database and dashboard steps, so the risk sits in the data handling around the change. Before deciding, confirm three things: which pipeline your installation currently uses, whether you have a staging copy of the platform to test against, and whether anyone has changed Superset or ClickHouse before. If any answer is no, a fixed-scope engagement can cover the steps your team cannot test safely. The Aspects overview explains how the pieces connect and is a good first read.

What drives the cost of an Aspects pipeline change?

Cost follows the amount of work in your environment, not the switch itself. The main drivers are:

  • Environment: whether Aspects runs on a single server, a Tutor-managed Kubernetes cluster, or a more complex setup with separate analytics hosts.
  • Data volume: how many tracking events sit in ClickHouse and how much must be checked after the change.
  • Custom plugins: any event-routing or LMS plugins that send events in non-standard ways need review.
  • Number of dashboards: each Superset dashboard and custom chart needs to be checked against the new data path.

In a quote, ask for each driver to be listed as a separate line with its assumptions, so you can see which items change if your environment is larger than expected.

How long does an Aspects pipeline change take?

No duration is fixed for every installation, so the answer depends on scope and should be stated in the written plan before work starts. The length is driven by how many environments need the change, how much ClickHouse data must be validated, how many dashboards must be checked, and whether the change is combined with a platform upgrade. Open edX Verawood, the current named release, was published on 30 July 2026, and Open edX supports only the latest named release, so an upgrade and a pipeline change planned together will have a longer schedule than either on its own. Ask for the timeline split into discovery, staging, production change, verification and handover.

What does the pipeline change need from our team?

Plan for access and time from four groups:

  • ClickHouse access: an account with rights to inspect tables, run queries and make schema changes, plus a current backup.
  • A staging environment: a copy of the platform and analytics stack where the change can run before production.
  • A maintenance window: an agreed period when tracking events can be paused or queued while the pipeline changes.
  • Named owners: someone who manages the LMS configuration, someone who administers Superset, and a reviewer who signs off on the dashboard checks.

Confirm these with your own change process, since approval rules and window lengths differ between organizations.

Will historical Aspects data be kept after the switch?

Keep the existing ClickHouse data unless a written plan says otherwise, and confirm that before any change. Switching the ingestion path does not automatically rewrite past events, but schema changes, table recreation or a failed migration can remove or split history if they are not planned. Ask for a written statement of which tables and time ranges will be kept, how they will be backed up before the change, and how the team will confirm that old and new data line up in dashboards. If you need a retention policy change at the same time, treat it as a separate decision with its own review.

What does a fixed-scope quote for this work cover?

A fixed-scope quote covers the work listed in a written scope, along with the deliverables and timeline agreed before work starts. For a pipeline change, ask that it names the current-state review, the configuration change, the ClickHouse work, the dashboard checks, the test results, the rollback steps and the handover notes. It should also say what is excluded, such as dashboards you add later, custom charts, or ongoing operation. Ongoing support, upgrades and continuous testing are available as retainers, so ask separately whether those are included or priced apart from the change itself.

What should we check after switching the Aspects pipeline?

Check that new tracking events reach ClickHouse, that the counts match the source logs for a fixed time window, and that no events appear twice. Then open each Superset dashboard your course teams use and confirm the charts load and show values in the expected range. Review the LMS and pipeline logs for errors over several days, since some faults only appear under normal learner traffic. Record the results and keep the previous configuration available so the change can be reversed if a check fails. Ask whoever runs the change to hand over these checks as a written list.

What a fixed-scope pipeline change covers

A written scope for an Aspects pipeline change should name each deliverable and the evidence that proves it. The first deliverable is a current-state review: which event sources reach the tracking log, whether the event-routing-backends plugin is emitting xAPI statements, which store receives them today (Ralph or Vector), the ClickHouse tables that hold them, and the Superset datasets that read from those tables. The second is the chosen pipeline configuration, with the settings files and environment values changed and a record of why. Confirm with your team which Aspects release you run before the review starts, because the default pipeline changed in Aspects v4 and the scope should state which path you are moving to or keeping.

The third and fourth deliverables are the ClickHouse changes and verification queries. The scope should list every schema change, migration step and table that is created, altered or left alone, along with a rollback approach for each. Verification queries should compare row counts and event types for a set period before and after cutover, and check that the Superset dashboards still return the same totals. The scope should also name the dashboard checks, including which charts are covered and who signs them off. Finally, runbook notes cover how to restart the pipeline, read its health signals, and handle a failed batch.

Ask for the scope, deliverables, acceptance criteria and timeline in writing before work starts. DeployOpen does not publish a price list, so a quote follows from that written scope, and the fee and duration should be tied to the items above. Ask which items are one-time, such as the migration and verification, and which recur, such as retained support after go-live. Confirm with your team which environment will be used for rehearsal, who holds access to the ClickHouse server, and who approves the cutover.

How DeployOpen scopes and supports Aspects pipeline work

DeployOpen plans and implements Open edX in infrastructure you control, including the analytics stack around it. For Aspects data pipeline work, we start by confirming which xAPI path your platform needs, then build, test and document the chosen pipeline so your team can operate it after handover.

How we scope

  • Engagements are fixed-scope, with the pipeline choice, deliverables and timeline agreed in writing before work starts.
  • The written scope names the Aspects release, the event-routing-backends configuration and the ClickHouse target to be changed.
  • Scope confirms whether Ralph stays in place, whether Vector becomes the pipeline, and what checks prove the cutover is complete.

How we build

  • We configure the event-routing-backends settings and the pipeline component on a non-production copy of your environment first.
  • Database changes to ClickHouse are written as reviewed, repeatable steps, with a rollback path agreed before any production change.
  • We test that tracking logs arrive as xAPI statements in ClickHouse and appear correctly in the Superset dashboards.

How we hand over

  • You receive configuration files, change records and a runbook covering the chosen pipeline and its database settings.
  • Operators are walked through how to check pipeline health, read component logs and recover from a failed ingest.
  • Documentation states which components remain on Ralph, if any, so later upgrades do not remove them unexpectedly.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainer work can cover pipeline changes needed when you move to a later named Open edX release.
  • Ask any partner to confirm in writing who owns ClickHouse operations, backups and access after the engagement ends.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.