Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Configuration
- ``TYPESENSE_DOCKER_IMAGE`` (default: ``"docker.io/typesense/typesense:29.0"``)
- ``TYPESENSE_BOOTSTRAP_API_KEY`` The initial admin API key to use when bootstrapping the Typesense server and to generate an api key for Open edX (default: auto-generated).
- ``TYPESENSE_API_KEY`` The API key used by Open edX (default: auto-generated).
- ``TYPESENSE_VOLUME_SIZE`` The volume size for Typesense data in k8s deployments. See `k8s memory resource units <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory>`_ for available units. (default: ``"5Gi"``)

These values can be modified with ``tutor config save --set PARAM_NAME=VALUE`` commands.

Expand Down
3 changes: 1 addition & 2 deletions tutor_typesense/patches/k8s-volumes
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ spec:
- ReadWriteOnce
resources:
requests:
# TODO: make this storage size configurable?
storage: 5Gi
storage: "{{ TYPESENSE_VOLUME_SIZE }}"
1 change: 1 addition & 0 deletions tutor_typesense/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
("TYPESENSE_COLLECTION_PREFIX", "tutor_"),
("TYPESENSE_PUBLIC_HOST", "typesense.{{ LMS_HOST }}"),
("TYPESENSE_DOCKER_IMAGE", "docker.io/typesense/typesense:29.0"),
("TYPESENSE_VOLUME_SIZE", "5Gi"),
]
)

Expand Down