-
Notifications
You must be signed in to change notification settings - Fork 18
/
pulsar-qld-high-mem_playbook.yml
82 lines (81 loc) · 2.37 KB
/
pulsar-qld-high-mem_playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
- hosts: pulsar_qld_himems
become: true
vars_files:
- group_vars/all.yml
- group_vars/pulsarservers.yml
- group_vars/VAULT
- secret_group_vars/stats_server_vault
- secret_group_vars/ubuntu_maintenance_key
# - host_vars/pulsar-high-mem2/pulsar-high-mem2.yml
pre_tasks:
- name: Attach volume to instance
include_role:
name: attached-volumes
- name: Create pulsar deps path
file:
path: "{{ pulsar_dependencies_dir }}"
state: directory
owner: "{{ pulsar_user.name }}"
group: "{{ pulsar_user.name }}"
roles:
- common
- insspb.hostname
- geerlingguy.pip
- galaxyproject.repos
- role: galaxyproject.miniconda
become: true
become_user: "{{ pulsar_user.name }}"
- galaxyproject.pulsar
- mariadb
- galaxyproject.slurm
- galaxyproject.cvmfs
- gantsign.golang
- cyverse-ansible.singularity
- geerlingguy.docker
- acl-on-startup
- dj-wasabi.telegraf
- pulsar-post-tasks
- slurm-post-tasks
- slg.galaxy_stats
- clean-tmpdisk
post_tasks:
- name: Create worker tmpdir on /mnt
file:
path: /mnt/tmpdisk
state: directory
owner: root
group: root
mode: '1777'
- name: stat links
stat:
path: /tmp
register: links
- name: remove old tmp
file:
path: /tmp
state: absent
when: links.stat.islnk is defined and not links.stat.islnk
- name: Link /tmp to /mnt/tmpdisk
file:
src: /mnt/tmpdisk
dest: /tmp
state: link
become: yes
become_user: root
when: links.stat.islnk is defined and not links.stat.islnk
- name: limit processes spawned by slurm jobs on qld-pulsar-himem-2
# limit number of slurm cgroup processes to prevent mothur forking to infinity
lineinfile:
path: /lib/systemd/system/slurmd.service
regexp: "^TasksMax="
line: "TasksMax=5000"
when: inventory_hostname.endswith('himem-2')
- name: reload systemd manager configuration for changes to take effect
systemd:
state: restarted
daemon_reload: yes
name: slurmd
when: inventory_hostname.endswith('himem-2')
- name: Update max_map_count to 1,000,000 for maxquant
command:
cmd: sysctl -w vm.max_map_count=1000000