Changing Project Location to Another Directory
In AEN your projects are by default stored in the /projects directory. To make aen-compute service use a different directory than /projects
to store your AEN projects:
-
Modify the
/opt/wakari/wakari-compute/etc/wakari/wk-compute-launcher-config.json
file:"projectRoot" : "/nfs/storage/services/wakari/projects",
The directory
/nfs/storage/services/wakari/projects
specified asprojectRoot
must already exist for this command to resolve properly. -
Restart the AEN compute service:
sudo service wakari-compute restart
We recommend putting /opt/wakari
and /projects
on the same filesystem. If the project and conda env directories are on separate filesystems then more disk space will be required on compute nodes and performance will be worse.
Using project directories as home directories
This option changes the home directories from the standard /home/<username>
location to the project directories. Then the package cache is saved in the user project location. This works better when collaborating users are installing or updating packages in the same project.
Because the package cache and the project are on the same filesystem, conda can often also create hardlinks and not copy files. This saves disk space and saves time when creating or cloning environments.
NOTE: This option should be enabled immediately after performing the installation process and before any users have logged in to AEN. This ensures that users will not have home directories in different places due to some creating their home directories when the option was disabled and others creating their home directories when the option was enabled.
-
In the
/opt/wakari/wakari-compute/etc/wakari/wk-compute-launcher-config.json
file, add theprojDirsAsHome
key value and set it totrue
., "projDirsAsHome": true
NOTE: You must add the comma at the beginning of the line. If you add this line as the last key, you must remove any comma at the end of the line.
-
Restart the AEN compute service:
sudo service wakari-compute restart