-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgalaxy.yml
408 lines (377 loc) · 14.7 KB
/
galaxy.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
---
# Python 3 support
pip_virtualenv_command: /usr/bin/python3 -m virtualenv # usegalaxy_eu.certbot, usegalaxy_eu.tiaas2, galaxyproject.galaxy
certbot_virtualenv_package_name: python36-virtualenv # usegalaxy_eu.certbot
pip_package: python3-pip # geerlingguy.pip
# Galaxy
galaxy_create_user: false
galaxy_separate_privileges: true
galaxy_manage_paths: true
galaxy_layout: root-dir
galaxy_root: /srv/galaxy
galaxy_log_dir: /var/log/galaxy
galaxy_user: {name: galaxy}
galaxy_config_style: yaml
galaxy_force_checkout: true
miniconda_prefix: "{{ galaxy_tool_dependency_dir }}/_conda"
miniconda_version: "4.6.14"
galaxy_instance_codename: "{{ env }}"
galaxy_file_path: /data/part0/
__galaxy_dir_perms: '0755'
galaxy_config:
galaxy:
brand: "Norway"
admin_users: "{{ galaxy_admin }}"
master_api: "{{ galaxy_master_api_key }}"
enable_beta_gdpr: true
enable_quotas: true
database_connection: "{{ db_connection }}"
file_path: "{{ galaxy_file_path }}"
cache_dir: "{{ galaxy_cache_dir }}"
galaxy_data_manager_data_path: "{{ galaxy_file_path }}/data_manager_reference_data"
tool_data_path: "{{ galaxy_server_dir }}/tool-data"
check_migrate_tools: false
tool_data_table_config_path: /cvmfs/data.galaxyproject.org/byhand/location/tool_data_table_conf.xml,/cvmfs/data.galaxyproject.org/managed/location/tool_data_table_conf.xml,/cvmfs/data.{{ galaxy_host }}/byhand/location/tool_data_table_conf.xml
tool_sheds_config_file: "{{ galaxy_config_dir }}/tool_sheds_conf.xml"
job_config_file: "{{ galaxy_config_dir }}/job_conf.xml"
job_metrics_config_file: "{{ galaxy_config_dir }}/job_metrics_conf.xml"
file_sources_config_file: "{{ galaxy_config_dir }}/file_sources_conf.yml"
user_preferences_extra_conf_path: "{{ galaxy_config_dir }}/user_preferences_extra_conf.yml"
sanitize_whitelist_file: "{{ galaxy_mutable_config_dir }}/sanitize_whitelist.txt"
job_working_directory: "{{ job_working_directory }}"
refgenie_config_file: "/cvmfs/refgenomes-databio.galaxyproject.org/genomes_config.yaml"
interactivetools_enable: "True"
interactivetools_map: "{{ gie_proxy_sessions_path }}"
outputs_to_working_directory: true
galaxy_infrastructure_url: "https://{{ galaxy_host }}/"
log_level: INFO
allow_path_paste: true
require_login: true
allow_user_creation: false
allow_user_impersonation: true
smtp_server: "localhost"
email_from: "galaxy-no-reply@{{ galaxy_host }}"
error_email_to: [email protected]
upload_from_form_button: always-on
enable_oidc: true
oidc_config_file: "{{ galaxy_config_dir }}/oidc_config.xml"
oidc_backends_config_file: "{{ galaxy_config_dir }}/oidc_backends.xml"
# This is a hack, for some reason uwsgi cannot read from /srv/galaxy/config/plugins/webhooks/nels/, suspect chroot
webhooks_dir: "config/plugins/webhooks/nels/,config/plugins/webhooks"
welcome_url: static/welcome.html
support_url: https://elixir.no/helpdesk
terms_url: https://{{galaxy_host}}/galaxy-terms/
statsd_host: localhost
statsd_influxdb: true
statsd_prefix: "galaxy_page_timings"
id_secret: "{{galaxy_id_secret}}"
message_box_visible: false
message_box_class: warning
message_box_content: The usegalaxy.no is still undergoing testing but we will be live Oct 21st 2020. Not for production use!
container_image_cache_path: /srv/galaxy/containers
enable_mulled_containers: true
mulled_channels: conda-forge,bioconda,https://galaxy-ntnu.bioinfo.no/nelsconda/
container_resolvers_config_file: "{{ galaxy_config_dir }}/container_resolvers_conf.xml"
dependency_resolvers_config_file: "{{ galaxy_config_dir }}/dependency_resolvers_conf.xml"
conda_ensure_channels: conda-forge,bioconda,defaults,https://galaxy-ntnu.bioinfo.no/nelsconda/
nginx_x_accel_redirect_base: "/_x_accel_redirect"
uwsgi:
# Default values
socket: 127.0.0.1:8080
buffer-size: 16384
processes: 4
threads: 4
offload-threads: 2
stats-push: statsd:127.0.0.1:8125
static-map:
- /static/style={{ galaxy_server_dir }}/static/style/blue/
- /static={{ galaxy_server_dir }}/static
master: true
virtualenv: "{{ galaxy_venv_dir }}"
pythonpath: "{{ galaxy_server_dir }}/lib"
module: galaxy.webapps.galaxy.buildapp:uwsgi_app()
thunder-lock: true
die-on-term: true
hook-master-start:
- unix_signal:2 gracefully_kill_them_all
- unix_signal:15 gracefully_kill_them_all
py-call-osafterfork: true
enable-threads: true
# Our additions
mule:
- lib/galaxy/main.py
- lib/galaxy/main.py
farm: job-handlers:1,2
galaxy_systemd_zergling_env: "DRMAA_LIBRARY_PATH=/usr/lib64/libdrmaa.so.1 SINGULARITY_TMPDIR=/data/part0/tmp"
galaxy_singularity_images_cvmfs_path: "/cvmfs/singularity.galaxyproject.org/all/"
galaxy_handler_count: "{{ galaxy_systemd_handlers }}"
pulsar_rabbitmq_proxy: "{{ groups['database'][0] }}"
galaxy_config_files:
- src: files/galaxy/config/job_metrics_conf.xml
dest: "{{ galaxy_config['galaxy']['job_metrics_config_file'] }}"
- src: files/galaxy/config/tool_conf_interactive.xml
dest: "{{ galaxy_config_dir }}/tool_conf_interactive.xml"
- src: files/galaxy/tools/sanitize_whitelist.txt
dest: "{{ galaxy_mutable_config_dir }}/sanitize_whitelist.txt"
- src: files/galaxy/tools/interactive/interactivetool_jupyter_notebook.xml
dest: "{{ galaxy_server_dir }}/tools/interactive/interactivetool_jupyter_notebook.xml"
- src: files/galaxy/config/dependency_resolvers_conf.xml
dest: "{{ galaxy_config_dir }}/dependency_resolvers_conf.xml"
- src: files/galaxy/config/tool_sheds_conf.xml
dest: "{{ galaxy_config_dir }}/tool_sheds_conf.xml"
- src: files/galaxy/config/user_preferences_extra_conf.yml
dest: "{{ galaxy_config_dir }}/user_preferences_extra_conf.yml"
galaxy_tool_config_files:
- "{{ galaxy_config_dir }}/tool_conf.xml"
- "{{ galaxy_config_dir }}/tool_conf_interactive.xml"
- "{{ galaxy_mutable_config_dir }}/shed_tool_conf.xml"
galaxy_config_templates:
- src: files/galaxy/config/tool_conf.xml
dest: "{{ galaxy_config_dir }}/tool_conf.xml"
- src: templates/galaxy/config/job_conf.xml.j2
dest: "{{ galaxy_config['galaxy']['job_config_file'] }}"
- src: templates/galaxy/config/reports.yml
dest: "{{ galaxy_config_dir }}/reports.yml"
- src: templates/galaxy/config/pulsar_app.yml.j2
dest: "{{ galaxy_config_dir }}/pulsar_app.yml"
- src: templates/galaxy/config/container_resolvers_conf.xml.j2
dest: "{{ galaxy_config_dir }}/container_resolvers_conf.xml"
- src: templates/galaxy/config/container_resolvers_conf.xml.j2
dest: "{{ galaxy_config_dir }}/container_resolvers_conf.xml"
- src: templates/galaxy/config/file_sources_conf.yml.j2
dest: "{{ galaxy_config_dir }}/file_sources_conf.yml"
galaxy_dynamic_job_rules_src_dir: files/galaxy/dynamic_rules
galaxy_dynamic_job_rules_dir: "{{ galaxy_root }}/dynamic_rules"
galaxy_dynamic_job_rules:
- usegalaxy/joint_destinations.yaml
- usegalaxy/sorting_hat.py
- usegalaxy/destination_specifications.yaml
- usegalaxy/tool_destinations.yaml
- readme.txt
# systemd
galaxy_systemd_mode: mule
galaxy_systemd_reports: true
galaxy_zergpool_listen_addr: 127.0.0.1:8080
galaxy_restart_handler_name: "Restart Galaxy"
galaxy_systemd_handlers: 8
galaxy_systemd_workflow_schedulers: 2
galaxy_selinux_web_access_dirs:
- "{{ galaxy_server_dir }}/client/galaxy/images"
- "{{ galaxy_server_dir }}/static"
# Interactive Tools
docker_install_compose: false
docker_users:
- "{{ galaxy_user.name }}"
gie_proxy_dir: /srv/galaxy/gie-proxy/proxy
gie_proxy_git_version: ie2
gie_proxy_setup_nodejs: nodeenv
gie_proxy_virtulenv_command: "{{ pip_virtualenv_command }}"
gie_proxy_nodejs_version: "10.13.0"
gie_proxy_virtualenv: /srv/galaxy/gie-proxy/venv
gie_proxy_setup_service: systemd
gie_proxy_sessions_path: "{{ galaxy_mutable_data_dir }}/interactivetools_map.sqlite"
# Certbot
certbot_auto_renew_hour: "{{ 23 |random(seed=galaxy_host) }}"
certbot_auto_renew_minute: "{{ 59 |random(seed=galaxy_host) }}"
certbot_auth_method: --webroot
certbot_install_method: virtualenv
certbot_auto_renew: yes
certbot_auto_renew_user: root
certbot_environment: production
certbot_well_known_root: /srv/nginx/_well-known_root
certbot_share_key_users:
- nginx
certbot_post_renewal: |
systemctl restart nginx || true
certbot_domains:
- "{{ galaxy_host }}"
- "*.interactivetoolentrypoint.interactivetool.{{ galaxy_host }}"
certbot_dns_provider: cloudflare
certbot_dns_credentials:
api_key: "{{ cloudflare_api_token }}"
email: "{{ cloudflare_email }}"
certbot_agree_tos: --agree-tos
# NGINX
nginx_selinux_allow_local_connections: true
nginx_servers:
- redirect-ssl
nginx_enable_default_server: false
nginx_ssl_servers:
- galaxy
- galaxy-gie-proxy
nginx_conf_http:
client_max_body_size: 1g
nginx_ssl_role: usegalaxy_eu.certbot
nginx_conf_ssl_certificate: /etc/letsencrypt/live/{{ galaxy_host }}/fullchain.pem
nginx_conf_ssl_certificate_key: /etc/letsencrypt/live/{{ galaxy_host }}/privkey.pem
nginx_conf_ssl_protocols:
- TLSv1.2
- TLSv1.3
nginx_conf_ssl_ciphers:
- ECDHE-RSA-AES256-GCM-SHA384
- ECDHE-RSA-AES128-GCM-SHA256
- DHE-RSA-AES256-GCM-SHA384
- DHE-RSA-AES128-GCM-SHA256
- ECDHE-RSA-AES256-SHA384
- ECDHE-RSA-AES128-SHA256
- ECDHE-RSA-AES256-SHA
- ECDHE-RSA-AES128-SHA
- DHE-RSA-AES256-SHA256
- DHE-RSA-AES128-SHA256
- DHE-RSA-AES256-SHA
- DHE-RSA-AES128-SHA
- AES256-GCM-SHA384
- AES128-GCM-SHA256
- AES256-SHA256
- AES128-SHA256
- AES256-SHA
- AES128-SHA
- HIGH
- "!DES-CBC3-SHA"
- "!ECDHE-RSA-DES-CBC3-SHA"
- "!EDH-RSA-DES-CBC3-SHA"
- "!aNULL"
- "!eNULL"
- "!EXPORT"
- "!DES"
- "!MD5"
- "!PSK"
- "!RC4"
custom_telegraf_env: "/usr/bin/env GDPR_MODE=1 GALAXY_ROOT=/srv/galaxy/ GALAXY_CONFIG_FILE=/srv/galaxy/config/galaxy.yml PGDATABASE={{galaxy_database}} PGHOST={{db_host}}"
custom_telegraf_gxadmin_bin: /usr/local/bin/gxadmin
custom_telegraf_slurm_collect_bin: /usr/local/bin/slurm-collect
custom_telegraf_uwsgi_bin: /usr/local/bin/telegraf-uwsgi.sh
telegraf_plugins_extra:
listen_galaxy_routes:
plugin: "statsd"
config:
- service_address = ":8125"
- metric_separator = "."
- allowed_pending_messages = 10000
monitor_galaxy_queue:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery queue-overview --short-tool-id",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery workflow-invocation-status"]
- timeout = "10s"
- data_format = "influx"
- interval = "30s"
# Some custom galaxy monitoring stuff
galaxy_uploaded:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery upload-gb-in-past-hour"]
- timeout = "15s"
- data_format = "influx"
- interval = "1h"
# Not all the gxadmin iqueries work eg: monthly_users_active. monthly_jobs
galaxy_misc_stats:
plugin: "exec"
config:
- commands = ["/srv/galaxy-tools/venv/bin/python3 /srv/galaxy-tools/bin/galaxy_stats.py -c /srv/galaxy/config/galaxy.yml stats"]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
galaxy_total_jobs:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery total-jobs"]
- timeout = "15s"
- data_format = "influx"
- interval = "1h"
galaxy_users_total:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery users-total"]
- timeout = "15s"
- data_format = "influx"
- interval = "1h"
galaxy_lastlog:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} uwsgi lastlog"]
- timeout = "15s"
- data_format = "influx"
- interval = "15s"
galaxy_jobs_queued:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery jobs-queued"]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
galaxy_jobs_queued_internal:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery jobs-queued-internal-by-handler"]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
galaxy_oidc:
plugin: "exec"
config:
- commands = ["{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery users-with-oidc"]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
postgres_extra:
plugin: "exec"
config:
- commands = [
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-cache-hit",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-index-size",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-index-usage",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-table-bloat",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-table-size",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-unused-indexes",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-vacuum-stats",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-stat-bgwriter",
"{{ custom_telegraf_env }} {{ custom_telegraf_gxadmin_bin }} iquery pg-stat-user-tables",
]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
slurm:
plugin: "exec"
config:
- commands = ["/usr/bin/python3 {{ custom_telegraf_slurm_collect_bin }}"]
- data_format = "influx"
uwsgi:
plugin: "exec"
config:
- commands = ["/bin/bash {{ custom_telegraf_uwsgi_bin }}"]
- data_format = "influx"
nginx:
config:
- urls = ["https://{{ galaxy_host }}/server_status"]
logparser:
plugin: logparser
config:
- files = ["/var/log/nginx/access.log"]
- from_beginning = true
- name_override = "nginx_access_log"
filter:
name: grok
config:
- patterns = ["%{COMBINED_LOG_FORMAT}"]
systemd_status:
plugin: "exec"
config:
- commands = ["/usr/local/bin/systemd_status.py -t galaxy nginx fail2ban slurmctld slurmdbd autofs"]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
dir_status:
plugin: "exec"
config:
- commands = ["/usr/local/bin/dir_status.py /srv/galaxy/server/dependencies /srv/galaxy/server/tool-data /srv/galaxy /srv/galaxy/var/config/sanitize_whitelist.txt "]
- timeout = "15s"
- data_format = "influx"
- interval = "1m"
ecc_status:
plugin: "exec"
config:
- commands = ["/home/sysadmin/ecc_wrapper_stats.sh"]
- timeout = "30s"
- data_format = "influx"
- interval = "2m"