Skip to content

Commit

Permalink
adds training dest in TPV
Browse files Browse the repository at this point in the history
  • Loading branch information
martindemko committed Oct 22, 2024
1 parent a8f70a2 commit 20eb441
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 88 deletions.
17 changes: 2 additions & 15 deletions group_vars/galaxyservers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ galaxy_user:
# galaxy_commit_id: 1ad49865fbeb03551cf7774dc0c12e5cd27ff797 # release_23.0
#galaxy_commit_id: 72070dbd0a6d0f418d0b8f914825ea2b8e6a0a88
#galaxy_commit_id: release_23.2
galaxy_commit_id: release_24.1
#galaxy_commit_id: release_24.1
galaxy_commit_id: 07fa2e32d7bbaec497b49f74355edb2cd252f2b2
galaxy_force_checkout: true
miniconda_prefix: "{{ galaxy_tool_dependency_dir }}/_conda"
miniconda_version: 'latest' # 23.5.2 # 23.5.0 # 4.12.0
Expand Down Expand Up @@ -187,21 +188,7 @@ galaxy_config:
- auto_install: false
cache_directory: /cvmfs/singularity.galaxyproject.org/all/
type: build_mulled_singularity
# - type: cached_explicit_singularity
# cache_directory: "{{ singularity_local_cache_dir }}"
# - type: explicit_singularity
# cache_directory: "{{ singularity_local_cache_dir }}"
# - type: cached_mulled_singularity
# cache_directory: "{{ singularity_local_cache_dir }}"
# - type: mulled_singularity
# auto_install: False
# cache_directory: "{{ singularity_local_cache_dir }}"
# - type: build_mulled_singularity
# auto_install: False
# cache_directory: "{{ singularity_local_cache_dir }}"
# Data Library Directories
library_import_dir: /mnt/sally
# user_library_import_dir: /libraries/user
# Celery
amqp_internal_connection: "pyamqp://galaxy:{{ vault_rabbitmq_password.galaxy }}@localhost:5671/galaxy_internal?ssl=1"
celery_conf:
Expand Down
103 changes: 30 additions & 73 deletions templates/galaxy/config/tpv_rules_local.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ tools:
cores: 1
mem: 10

.*/ms2deepscore_training/.*:
mem: 16

.*testing.*:
cores: 1
mem: 1
Expand Down Expand Up @@ -60,14 +63,20 @@ tools:
- pulsar
- singularity

#roles:
# training.*:
# max_cores: 2
# max_mem: max_cores * 4 # TODO check multiplier
# scheduling:
# require:
# - pulsar
# - training
__IMPORT_HISTORY__:
scheduling:
require:
- local
- pulsar

roles:
training.*:
max_cores: 2
max_mem: max_cores * 4 # TODO check multiplier
scheduling:
require:
- pulsar
- training

destinations:
tpv_local:
Expand All @@ -81,7 +90,6 @@ destinations:
require:
- local
reject:
- pulsar
- singularity
tpv_singularity:
runner: local_runner
Expand All @@ -104,8 +112,6 @@ destinations:
- local
prefer:
- singularity
reject:
- pulsar

tpv_pulsar:
runner: pulsar_runner
Expand Down Expand Up @@ -179,65 +185,16 @@ destinations:
- pulsar
- singularity

# pulsar_gpu:
# runner: pulsar_gpu_runner
# max_accepted_cores: 128
# max_accepted_mem: 512
# max_accepted_gpus: 2
# max_cores: 16
# max_mem: 64
# max_gpus: 1
# params:
# default_file_action: remote_transfer
# transport: curl
# dependency_resolution: remote
# jobs_directory: "/auto/brno11-elixir/home/galaxyumsa/pulsar-umsa/files/staging"
# persistence_directory: "/opt/pulsar/files/persistent"
# remote_metadata: false
# rewrite_parameters: true
# outputs_to_working_directory: false
# singularity_enabled: true
# singularity_run_extra_arguments: '--nv'
# singularity_volumes: '$job_directory:ro,$tool_directory:ro,$job_directory/outputs:rw,$working_directory:rw,$SCRATCHDIR,$ALPHAFOLD_DB:/data/2.3:ro'
# env:
# # The cache directory holds the docker containers that get converted
# - name: SINGULARITY_CACHEDIR
# value: "/storage/praha5-elixir/home/galaxyeu/singularity/cache"
# - name: APPTAINER_CACHEDIR
# value: "/storage/praha5-elixir/home/galaxyeu/singularity/cache"
# # Singularity uses a temporary directory to build the squashfs filesystem
# - name: SINGULARITY_TMPDIR
# value: "/storage/praha5-elixir/home/galaxyeu/singularity/tmp"
# - name: APPTAINER_TMPDIR
# value: "/storage/praha5-elixir/home/galaxyeu/singularity/tmp"
# # Alphafold specific variables
# - name: ALPHAFOLD_DB
# value: "/storage/brno11-elixir/projects/alphafold/alphafold.db-2.3.1"
# # Default variables
# - name: TMPDIR
# value: "$SCRATCHDIR"
# - name: TMP
# value: "$SCRATCHDIR"
# - name: TEMP
# value: "$SCRATCHDIR"
# # Ensuring a consistent collation environment is good for reproducibility.
# - name: LC_ALL
# value: C
# scheduling:
# require:
# - pulsar
# - gpu

# pulsar-training:
# inherits: pulsar
# runner: pulsar_runner
# max_accepted_cores: 12
# max_accepted_mem: 120
# max_cores: 2 # Limit the cores
# max_mem: 8 # Limit the memory
# params:
# native_specification: --nodes=1 --ntasks=1 --mem={round(mem*1024)} --cpus-per-task={cores} --time=00:30:00
# scheduling:
# require:
# - pulsar
# - training
tpv_pulsar_training:
inherits: tpv_pulsar
runner: pulsar_runner
max_accepted_cores: 12
max_accepted_mem: 120
max_cores: 2 # Limit the cores
max_mem: 8 # Limit the memory
params:
native_specification: --nodes=1 --ntasks=1 --mem={round(mem*1024)} --cpus-per-task={cores} --time=00:30:00
scheduling:
require:
- pulsar
- training

0 comments on commit 20eb441

Please sign in to comment.