You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/technical_documentation/how-tos/production_configuration.rst
+24-23Lines changed: 24 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,30 @@ Aspects can be configured to send xAPI events to ClickHouse in several different
10
10
11
11
At a high level the options are:
12
12
13
+
Vector (default)
14
+
----------------
15
+
16
+
**Recommended for:** Most deployments, from resource-constrained Tutor local environments to larger production stacks.
17
+
18
+
Vector is a log forwarding service that monitors the logs from docker containers or Kubernetes pods. It writes events directly to ClickHouse and automatically batches events based on volume. The LMS is configured to transform and log xAPI events in-process and Vector picks them up by reading the logs.
19
+
20
+
Pros:
21
+
22
+
- Removes the need to run or scale Ralph
23
+
- Automatic batching adjustments
24
+
- Fastest delivery times to ClickHouse
25
+
- Vector failures do not impact other systems
26
+
- Allows to backup and restore data from an S3 compatible backend
27
+
28
+
Cons:
29
+
30
+
- It is a new service for most operators
31
+
- Events are not de-duplicated before insert, which can result in some (mostly temporary) incorrect data in a disaster recovery
32
+
- Disaster recovery hasn't been tested with Aspects yet
33
+
- Needs a pod run for every LMS or CMS Kubernetes worker
34
+
- When run in-process, adds a small amount of overhead to any LMS request that sends an xAPI statement
35
+
36
+
13
37
Celery tasks without batching (default as of 1.0.0)
- Batching is not as well tested (as of Redwood) and may have edge cases until it has been used in production
53
77
54
78
55
-
Vector
56
-
------
57
-
58
-
**Recommended for:** Resource-constrained Tutor local environments, experienced operators on larger deployments.
59
-
60
-
Vector is a log forwarding service that monitors the logs from docker containers or Kubernetes pods. It writes events directly to ClickHouse and automatically batches events based on volume. The LMS can be configured to transform and log xAPI events in-process and Vector will pick them up by reading the logs.
61
-
62
-
Pros:
63
-
64
-
- Removes the need to run or scale Ralph
65
-
- Automatic batching adjustments
66
-
- Fastest delivery times to ClickHouse
67
-
- Vector failures do not impact other systems
68
-
69
-
Cons:
70
-
71
-
- It is a new service for most operators
72
-
- Events are not de-duplicated before insert, which can result in some (mostly temporary) incorrect data in a disaster recovery
73
-
- Disaster recovery hasn't been tested with Aspects yet
74
-
- Needs a pod run for every LMS or CMS Kubernetes worker
75
-
- When run in-process, adds a small amount of overhead to any LMS request that sends an xAPI statement
Copy file name to clipboardExpand all lines: docs/technical_documentation/quickstarts/ralph.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,19 @@ Ralph
5
5
6
6
Installation instructions for Aspects are available on the plugin site: https://github.com/openedx/tutor-contrib-aspects
7
7
8
-
Ralph is the default option to send xAPI events to Clickhouse. To run it make sure to enable the `RUN_RALPH` option in the `config.yml` file.
8
+
Ralph is an alternative option to send xAPI events to Clickhouse, providing full LRS support and deduplication. To use Ralph as your xAPI pipeline, you need to enable it and set it as the source in your `config.yml` file.
9
9
10
10
.. code-block:: yaml
11
11
12
12
RUN_RALPH: True
13
+
ASPECTS_XAPI_SOURCE: ralph
13
14
14
-
# We recommend only running Ralph or Vector for performance reasons, so
15
-
# suggest turning off Vector here
15
+
# We recommend only running one transport for performance reasons, so
16
+
# suggest turning off Vector if you are using Ralph for xAPI
16
17
RUN_VECTOR: False
17
18
19
+
When ``ASPECTS_XAPI_SOURCE`` is set to ``ralph``, the xAPI data will be stored in the database defined by ``RALPH_DATABASE`` (defaults to ``xapi``).
20
+
18
21
19
22
Aspects provides the following configuration options:
Copy file name to clipboardExpand all lines: docs/technical_documentation/quickstarts/vector.rst
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,16 @@ Vector
5
5
6
6
Installation instructions for Aspects are available on the plugin site: https://github.com/openedx/tutor-contrib-aspects
7
7
8
-
Vector is an alternative option to send xAPI events to Clickhouse. It can be run along with Ralph, but to optimize resources we encourage you to only use one.
9
-
10
-
To configure Vector as the xAPI event handler, you can use the following configuration:
8
+
Vector is the default option to send xAPI events to Clickhouse in Aspects. It is enabled by default with the following settings:
11
9
12
10
.. code-block:: yaml
13
11
14
-
# Disable ralph
15
-
RUN_RALPH: False
16
-
# Enable vector
12
+
# Default settings
17
13
RUN_VECTOR: True
18
-
# Change the xAPI database to the one Vector uses
19
-
ASPECTS_XAPI_DATABASE: "openedx"
14
+
RUN_RALPH: False
15
+
ASPECTS_XAPI_SOURCE: vector
16
+
17
+
When ``ASPECTS_XAPI_SOURCE`` is set to ``vector``, the xAPI data will be stored in the database defined by ``ASPECTS_VECTOR_DATABASE`` (defaults to ``openedx``).
20
18
21
19
22
20
Aspects provides the following configuration options:
0 commit comments