-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A database should be optional #151
Comments
Hi @WarmBeer, the tracker can persist:
Right now, the database is mandatory, but you can switch off "statistics persistence" with the core config option: Could you elaborate on how you think we should implement this issue? I suppose you want to have an extra config option to totally disable the database or maybe one independent flag for each feature?:
|
Hi @josecelano ,
Correct.
Yes I think an independent flag for each feature would be nice. We could add a ‘[persistency]’ section to the config options with these three flags. And I suppose that the database url config option could also move to this section. |
Making the database optional would allow running the tracker without depending on the file system. We could:
With no file system dependency, we could run more straightforward docker commands to run a tracker using the docker. Instead of running: export TORRUST_TRACKER_USER_UID=1000 \
&& docker run -it \
--user="$TORRUST_TRACKER_USER_UID" \
--publish 6969:6969/udp \
--publish 7070:7070/tcp \
--publish 1212:1212/tcp \
--volume "$(pwd)/storage":"/app/storage" \
--volume "$(pwd)/config.toml":"/app/config.toml":ro \
torrust/tracker:3.0.0-alpha.3 We could run: export TORRUST_TRACKER_USER_UID=1000 \
&& docker run -it \
--user="$TORRUST_TRACKER_USER_UID" \
--publish 6969:6969/udp \
--publish 7070:7070/tcp \
--publish 1212:1212/tcp \
torrust/tracker:3.0.0-alpha.3 Without mounting any volume. See #367 |
I'm going to close this issue @WarmBeer. I think it's only a reminder that we should not make the database mandatory unless you are using a feature that requires persistence. |
The tracker only needs a database if it wants to persist torrent statistics and private tracker keys between reboots. In all other cases a database should not be necessary.
The text was updated successfully, but these errors were encountered: