galaxyproject / ansible-galaxy

An Ansible role for managing a Galaxy server
https://galaxy.ansible.com/galaxyproject/galaxy
57 stars 75 forks source link

Symlinks reduce disk usage #198

Closed mira-miracoli closed 9 months ago

mira-miracoli commented 9 months ago

This is a small improvement for the copy tasks in the static directories As the role currently works, the whole static directory is rsynced into every new subdomain directory, which leads to additional disk usage of ~ 154 MB for each subdomain in a basic (GTN) Galaxy setup.

With this improvement, several static subdirectories are symlinked and all files inside dist are symlinked, which reduces the disk usage per subdomain to ~ 2.3 MB.

However the disadvantage of this is:

To solve this conflict, I added variables that let the user decide weather to use the symlink feature and reduce the logs or not