Files
dotfiles/ansible/templates/juicefs.service.j2
Menno van Leeuwen 2173e37c0a
Some checks failed
Nix Format Check / check-format (push) Successful in 1m22s
Python Lint Check / check-python (push) Successful in 25s
Ansible Lint Check / check-ansible (push) Failing after 1h7m12s
refactor: update configuration for mennos-server and adjust related tasks
2025-10-16 14:53:32 +02:00

25 lines
520 B
Django/Jinja

[Unit]
Description=JuiceFS
After=network.target
Before=docker.service
[Service]
Type=simple
ExecStart=/usr/local/bin/juicefs mount redis://:{{ redis_password }}@mennos-server:6379/0 /mnt/object_storage \
--cache-dir=/var/jfsCache \
--buffer-size=4096 \
--prefetch=16 \
--cache-size=131072 \
--attr-cache=60 \
--entry-cache=60 \
--open-cache=60 \
-o writeback_cache \
--max-uploads=80 \
--max-deletes=80 \
--writeback \
--upload-delay=30s
Restart=on-failure
[Install]
WantedBy=multi-user.target