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

Slurm: kill jobs that has invalid dependencies #674

Merged
merged 1 commit into from
Nov 14, 2022
Merged
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
8 changes: 4 additions & 4 deletions roles/mariadb/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
#
# Important: maintain correct handler order.
# Handlers are executed in the order in which they are defined
# Handlers are executed in the order in which they are defined
# and not in the order in which they are listed in a "notify: handler_name" statement!
#
# Restart before reload: an reload after a restart may be redundant but should not fail,
Expand All @@ -13,16 +13,16 @@
ansible.builtin.systemd:
name: 'mariadb.service'
state: 'restarted'
daemon_reload: yes
daemon_reload: true
become: true
listen: restart_mariadb

- name: 'Start MariaDB/MySQL service.'
ansible.builtin.systemd:
name: 'mariadb.service'
state: 'started'
enabled: yes
daemon_reload: yes
enabled: true
daemon_reload: true
become: true
listen: start_mariadb
...
7 changes: 4 additions & 3 deletions roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name:
- 'mariadb-server'
state: 'latest'
update_cache: yes
update_cache: true
notify:
- 'restart_mariadb'
become: true
Expand Down Expand Up @@ -72,7 +72,7 @@
name:
- 'MySQL-python'
state: 'latest'
update_cache: yes
update_cache: true
become: true

- name: 'Set MariaDB/MySQL root user password.'
Expand All @@ -92,7 +92,8 @@
# Without explicit flush the handlers will run after the slurm rol tasks,
# which is too late resulting in Slurm unable to work with the Slurm Accounting DB.
#
- meta: flush_handlers
- name: Flush handlers
ansible.builtin.meta: flush_handlers

- name: 'Give the MariaDB/MySQL master node some time to initialize the database cluster.'
ansible.builtin.command: bash -c "sleep 60"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ JobSubmitPlugins=lua
TmpFS=/local
# Terminate job immediately when one of the processes is crashed or aborted.
KillOnBadExit=1
# Job with invalid dependency (by default) stay pending with DependencyNeverSatisfied. This option kills it and sets JOB_CANCELLED.
DependencyParameters=kill_invalid_depend
# Automatically requeue jobs after a node failure or preemption by a higher prio job.
JobRequeue=1
#
Expand Down Expand Up @@ -45,7 +47,7 @@ Waittime=15
# Scheduling
#
SchedulerType=sched/backfill
SchedulerParameters=kill_invalid_depend,bf_continue,bf_max_job_test=10000,bf_max_job_user=5000,default_queue_depth=1000,bf_window=10080,bf_resolution=300,bf_busy_nodes,preempt_reorder_count=100,preempt_youngest_first
SchedulerParameters=bf_continue,bf_max_job_test=10000,bf_max_job_user=5000,default_queue_depth=1000,bf_window=10080,bf_resolution=300,bf_busy_nodes,preempt_reorder_count=100,preempt_youngest_first
SelectType=select/cons_res
SelectTypeParameters=CR_Core_Memory
PriorityType=priority/multifactor
Expand Down