Skip to content
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

Add EGI pulsar endpoint #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ preferences:
options:
- ["Select the remote resources", None]
- ["default - Galaxy will decide where to put your job", None]
- ["EGI Italy - INFN-CLOUD-BARI", egi-bari]

ega_account:
description: Your EGA (European Genome Archive) account
Expand Down
52 changes: 52 additions & 0 deletions ansible/files/galaxy/tpv/destinations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,55 @@ destinations:
require:
- singularity
- conda

#######################
# PULSAR DESTINATIONS #
#######################
pulsar_default: # use for remote Pulsar nodes and ALWAYS overwrite the runner.
abstract: true
runner: pulsar_embedded
env:
LC_ALL: C
SINGULARITY_CACHEDIR: /data/share/var/database/container_cache # On the NFS share on remote Pulsar side
params:
jobs_directory: /data/share/staging
transport: curl
remote_metadata: "false"
metadata_strategy: directory
default_file_action: remote_transfer
rewrite_parameters: "true"
persistence_directory: /data/share/persisted_data
outputs_to_working_directory: "false"
dependency_resolution: "none"
submit_request_cpus: "{cores}"
submit_request_memory: "{mem}"
docker_volumes: "$job_directory:rw,
$tool_directory:ro,
$job_directory/outputs:rw,
$working_directory:rw,
{{ cvmfs.data.path }}:{{ cvmfs.data.docker_perm }}"
singularity_volumes: "$job_directory:rw,
$tool_directory:ro,
$job_directory/outputs:rw,
$working_directory:rw,
{{ cvmfs.data.path }}:{{ cvmfs.data.docker_perm }}"
singularity_enabled: true
singularity_default_container_id: "{{ cvmfs.singularity.path }}/all/centos:8.3.2011"
scheduling:
accept:
- pulsar
- conda
- singularity
- docker
- condor-tpv

pulsar_egi01_tpv:
inherits: pulsar_default
runner: pulsar_eu_egi01
max_accepted_cores: 8
max_accepted_mem: 15
min_accepted_gpus: 0
max_accepted_gpus: 0
scheduling:
require:
- egi-bari
3 changes: 3 additions & 0 deletions ansible/group_vars/mq_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ rabbitmq_users:
password: "{{ rabbitmq_password_flower }}"
tags: administrator
vhost: galaxy
- user: galaxy_egi01
password: "{{ rabbitmq_password_galaxy_egi01 }}"
vhost: /pulsar/galaxy_egi01

rabbitmq_plugins:
- rabbitmq_management
Expand Down
11 changes: 11 additions & 0 deletions ansible/templates/galaxy/config/job_conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ galaxy_jobconf:
load: galaxy.jobs.runners.condor:CondorJobRunner
- id: local
load: galaxy.jobs.runners.local:LocalJobRunner
- id: pulsar_eu_egi01
load: galaxy.jobs.runners.pulsar:PulsarMQJobRunner
params:
amqp_url: "pyamqp://galaxy_egi01:{{ rabbitmq_password_galaxy_egi01 }}@mq.galaxyproject.eu:5671//pulsar/galaxy_egi01?ssl=1"
galaxy_url: "https://usegalaxy.eu"
manager: production
amqp_acknowledge: "true"
amqp_ack_republish_time: 300
amqp_consumer_timeout: 2.0
amqp_publish_retry: "true"
amqp_publish_retry_max_retries: 60
default_destination: tpv_dispatcher
destinations:
- id: local
Expand Down