Skip to content

Commit d94f865

Browse files
committed
Remove the pause by disabling all possible daemons
1 parent 20bacff commit d94f865

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

icpc-wf/ansible/judgehost.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
- name: setup judgehost
55
hosts: judgehost
6+
serial:
7+
- 33% # We always leave 1/3 of the judges online
8+
- 33%
9+
- 34%
610
vars:
711
host_type: judgehost
812
become: yes
@@ -37,9 +41,11 @@
3741
tags: prometheus_target_all
3842
when: GRAFANA_MONITORING
3943
pre_tasks:
40-
- pause:
41-
prompt: "Did you disable all judges"
42-
delegate_to: localhost
44+
- name: Disable all cores
45+
service:
46+
name="domjudge-judgedaemon@{{item}}"
47+
state=stopped
48+
with_sequence: start=0 end={{ ansible_processor_vcpus }} format=domjudge-judgedaemon@%1x
4349
tasks:
4450
- name: add autostart shortcuts
4551
template:

0 commit comments

Comments
 (0)