Skip to content

Commit

Permalink
Merge pull request #850 from sanjaysrikakulam/move_to_maintenance_node
Browse files Browse the repository at this point in the history
Move cleanup, cron tasks to the maintenance node
  • Loading branch information
sanjaysrikakulam authored Jul 27, 2023
2 parents f2f80d1 + 32519cc commit 2e5ae3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 60 deletions.
45 changes: 0 additions & 45 deletions group_vars/sn06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,6 @@ autofs_mount_points:

# fs-maintenance
fsm_maintenance_dir: "/data/dnb01/maintenance"

fsm_scripts:
temporary_dirs:
enable: true
src: "temporary_dirs.sh.j2"
dst: "{{ fsm_maintenance_dir }}/temporary_dirs.sh"
user: "{{ fsm_galaxy_user.username }}"
group: "{{ fsm_galaxy_user.groupname }}"
paths:
- /data/2/galaxy_db/tmp
- /data/dnb01/galaxy_db/tmp
- /data/dnb02/galaxy_db/tmp
- /data/dnb03/galaxy_db/tmp
- /data/jwd/tmp
time: "{{ fsm_intervals.long }}"
upload_dirs:
enable: true
src: "uploads.sh.j2"
dst: "{{ fsm_maintenance_dir }}/uploads.sh"
user: "{{ fsm_galaxy_user.username }}"
group: "{{ fsm_galaxy_user.groupname }}"
paths:
- "{{ galaxy_config['galaxy']['nginx_upload_store'] }}"
- "{{ galaxy_config['galaxy']['nginx_upload_job_files_store'] }}"
time: "{{ fsm_intervals.medium }}"
job_working_dirs:
enable: true
src: "job_working_dir.sh.j2"
dst: "{{ fsm_maintenance_dir }}/job_working_dir.sh"
user: "{{ fsm_galaxy_user.username }}"
group: "{{ fsm_galaxy_user.groupname }}"
paths:
- "{{ galaxy_config['galaxy']['job_working_directory'] }}"
- /data/dnb03/galaxy_db/job_working_directory
- /data/jwd/main
time: "{{ fsm_intervals.long }}"

fsm_cron_tasks:
docker:
enable: true
Expand All @@ -86,8 +49,6 @@ fsm_cron_tasks:
job: "{{ custom_telegraf_env }} /usr/bin/gxadmin galaxy cleanup 60"
user: "{{ fsm_galaxy_user.username }}"

fsm_htcondor_enable: true

# TIaaS
tiaas_virtualenv_python: "python3.8"

Expand Down Expand Up @@ -299,12 +260,6 @@ postgres_user: galaxy
postgres_host: sn05.galaxyproject.eu
postgres_port: 5432

# Slurp script
galaxy_slurper: galaxy
galaxy_slurp_influx_pass: "{{ influxdb.node.password }}"
galaxy_slurp_influx_user: "{{ influxdb.node.username }}"
galaxy_slurp_influx_url: "{{ influxdb.url }}"

# GRT
galaxy_grt_exporter: galaxy
galaxy_grt_uploader: galaxy
Expand Down
15 changes: 7 additions & 8 deletions maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@
- ssh-host-sign
- hxr.postgres-connection
- galaxyproject.gxadmin
# # uncomment (commented roles) when in production
# - usegalaxy-eu.galaxy-slurp
# - usegalaxy_eu.fs_maintenance
# - usegalaxy-eu.htcondor_release
# - usegalaxy-eu.fix-unscheduled-workflows
# - usegalaxy-eu.fix-ancient-ftp-data
# - usegalaxy-eu.fix-user-quotas
- usegalaxy-eu.galaxy-slurp
- usegalaxy_eu.fs_maintenance
- usegalaxy-eu.htcondor_release
- usegalaxy-eu.fix-unscheduled-workflows
- usegalaxy-eu.fix-ancient-ftp-data
- usegalaxy-eu.fix-user-quotas
- ssh_hardening
- dj-wasabi.telegraf
# - usegalaxy-eu.fix-stop-ITs
- usegalaxy-eu.fix-stop-ITs
- usegalaxy-eu.vgcn-monitoring
- usegalaxy-eu.logrotate
2 changes: 1 addition & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ roles:
src: https://github.com/usegalaxy-eu/ansible-autofs
version: 1.0.0
- name: usegalaxy_eu.fs_maintenance
version: 0.0.5
version: 0.0.6
- name: usegalaxy_eu.rustus
version: 0.2.0
- name: usegalaxy_eu.rabbitmqserver
Expand Down
6 changes: 0 additions & 6 deletions sn06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
- galaxyproject.tiaas2
- usegalaxy-eu.nginx
# TODO move under monitoring + telegraf.
- usegalaxy-eu.galaxy-slurp
- usegalaxy-eu.gapars-galaxy
# The REAL galaxy role
- role: galaxyproject.galaxy
Expand All @@ -217,16 +216,11 @@
- usegalaxy_eu.fs_maintenance # Filesystems maintenance
- usegalaxy-eu.logrotate # Rotate logs
- usegalaxy-eu.error-pages # Copy the NGINX error pages
- usegalaxy-eu.htcondor_release # Condor release held jobs increasing memory
# Various ugly fixes
- usegalaxy-eu.fix-unscheduled-jobs # Workaround for ???
- usegalaxy-eu.fix-unscheduled-workflows # Workaround for https://github.com/galaxyproject/galaxy/issues/8209
- usegalaxy-eu.fix-stuck-handlers # Restart handlers to prevent several classes of issues
- usegalaxy-eu.log-cleaner # do not retain journalctl logs, they are unnecessary/risky under GDPR
- usegalaxy-eu.fix-ancient-ftp-data # Remove FTP data older than 3 months, create FTP user directories
- usegalaxy-eu.galaxy-procstat # Some custom telegraf monitoring that's templated
- usegalaxy-eu.fix-user-quotas # Automatically recalculate user quotas and attribute ELIXIR quota to ELIXIR AAI user on a regular basis
- usegalaxy-eu.fix-stop-ITs # remove IT jobs after 24h from queue
- usegalaxy_eu.tpv_auto_lint
# Some of our 'cleanups' also generate telegraf format so this goes at end.
- dj-wasabi.telegraf
Expand Down

0 comments on commit 2e5ae3d

Please sign in to comment.