@@ -347,7 +347,7 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
347347 # directory in which necessary files will be stored.
348348 #FILETRACKER_CACHE_ROOT = '__DIR__/cache'
349349
350- # When using a remote storage it's recommended to enable a cache cleaner deamon
350+ # When using a remote storage it's recommended to enable a cache cleaner daemon
351351 # which will periodically scan cache directory and remove files what aren't
352352 # used. For a detailed description of each option, please read a cache cleaner
353353 # configuration section in the sioworkersd documentation.
@@ -439,7 +439,7 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
439439
440440 -# Filetracker server settings.
441441 -#
442- -# Determines which filetracker database use, availible options are:
442+ -# Determines which filetracker database use, available options are:
443443 -# - 'oioioi.filetracker.client.media_root_factory' (the default)
444444 -# Stores files on local filesystem under MEDIA_ROOT, optionally
445445 -# exposing them with a filetracker server (see section below).
@@ -588,7 +588,7 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
588588
589589 # 'oioioi.usergroups',
590590
591- #. * Introduced `DEFAULT_COMPILERS ` to settings, which should be set for every language supoorted ::
591+ #. * Introduced `DEFAULT_COMPILERS ` to settings, which should be set for every language supported ::
592592
593593 --- a/oioioi/default_settings.py
594594 +++ b/oioioi/default_settings.py
@@ -896,7 +896,7 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
896896 +# The server to be run. Options are:
897897 +# 'django' - django's http server
898898 +# 'uwsgi' - uwsgi daemon
899- +# 'uwsgi-http' - uwsgi deamon with built-in http server
899+ +# 'uwsgi-http' - uwsgi daemon with built-in http server
900900 +# None - nothing will be run
901901 +SERVER = 'django'
902902
@@ -1121,3 +1121,49 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
11211121 +# )
11221122
11231123 * Remove all sentry and raven reminiscent from settings.py in LOGGING SECTION.
1124+
1125+ Migrating from Filetracker to s3dedup (currently only for docker-compose-dev.yml deployments)
1126+ ----------------------------------------------------------------
1127+
1128+ This guide covers migrating from the built-in Filetracker to s3dedup in Docker Compose
1129+ development deployments. This is currently only needed deployments using ``docker-compose-dev.yml ``.
1130+ If you don't have any data you want to keep, you don't have to do anything.
1131+
1132+ #. Stop the s3dedup container::
1133+
1134+ docker-compose -f docker-compose-dev.yml stop s3dedup
1135+
1136+ #. In ``docker-compose-dev.yml ``, modify the web container environment variables:
1137+
1138+ * Remove ``FILETRACKER_SERVER_ENABLED=False `` (or set to ``True ``)
1139+ * Set ``FILETRACKER_LISTEN_ADDR=0.0.0.0 ``
1140+ * Set ``FILETRACKER_LISTEN_PORT=9999 ``
1141+
1142+ #. Restart the web container::
1143+
1144+ docker-compose -f docker-compose-dev.yml down web
1145+ docker-compose -f docker-compose-dev.yml up -d web
1146+
1147+ #. Run the migration::
1148+
1149+ docker-compose -f docker-compose-dev.yml run --rm s3dedup migrate --env \
1150+ --filetracker-url http://web:9999 \
1151+ --max-concurrency 10
1152+
1153+ The migration will display progress and statistics about files migrated and
1154+ deduplication savings.
1155+
1156+ #. Once migration completes, restore the environment variables in ``docker-compose-dev.yml ``:
1157+
1158+ * Remove or comment out ``FILETRACKER_LISTEN_ADDR `` and ``FILETRACKER_LISTEN_PORT ``
1159+ * Set ``FILETRACKER_SERVER_ENABLED=False ``
1160+
1161+ #. Restart the web container and start s3dedup::
1162+
1163+ docker-compose -f docker-compose-dev.yml down web
1164+ docker-compose -f docker-compose-dev.yml up -d web s3dedup
1165+
1166+ #. Verify the migration by checking that files are accessible through s3dedup.
1167+
1168+ For more details about the migration process, see the s3dedup documentation at
1169+ ``https://github.com/sio2project/s3dedup ``.
0 commit comments